From: Mike Frysinger Date: Thu, 21 Oct 2010 08:00:40 +0000 (-0400) Subject: pata_bf54x: fix return type of bfin_set_devctl X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c0695733d56ea12ad62ee534c2eed91f917548ae;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git 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 Signed-off-by: Jeff Garzik --- diff --git a/drivers/ata/pata_bf54x.c b/drivers/ata/pata_bf54x.c index e1423cd2531f..ec2c777fcdb0 100644 --- a/drivers/ata/pata_bf54x.c +++ b/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);