瀏覽代碼

pata_bf54x: fix return type of bfin_set_devctl

The new devctl func added for us to the driver has the wrong return
type.  Which is to say there shouldn't be any.  This fixes compile
time warnings as there shouldn't be any runtime difference.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Mike Frysinger 14 年之前
父節點
當前提交
c0695733d5
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/ata/pata_bf54x.c

+ 1 - 1
drivers/ata/pata_bf54x.c

@@ -826,7 +826,7 @@ static void bfin_dev_select(struct ata_port *ap, unsigned int device)
  *	@ctl: value to write
  */
 
-static u8 bfin_set_devctl(struct ata_port *ap, u8 ctl)
+static void bfin_set_devctl(struct ata_port *ap, u8 ctl)
 {
 	void __iomem *base = (void __iomem *)ap->ioaddr.ctl_addr;
 	write_atapi_register(base, ATA_REG_CTRL, ctl);