]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
irda: fix smsc-ircc2 section mismatch warning
authorRandy Dunlap <randy.dunlap@oracle.com>
Wed, 22 Jun 2011 03:32:53 +0000 (20:32 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 3 Oct 2011 18:40:20 +0000 (11:40 -0700)
commit f470e5ae34d68880a38aa79ee5c102ebc2a1aef6 upstream.

Fix section mismatch warning:

WARNING: drivers/net/irda/smsc-ircc2.o(.devinit.text+0x1a7): Section mismatch in reference from the function smsc_ircc_pnp_probe() to the function .init.text:smsc_ircc_open()

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/irda/smsc-ircc2.c

index 8800e1fe4129a84a41b2a6d5da495b5e807b8301..6a4826ad6e3194d9bb33aedaed233eb7d475453d 100644 (file)
@@ -515,7 +515,7 @@ static const struct net_device_ops smsc_ircc_netdev_ops = {
  *    Try to open driver instance
  *
  */
-static int __init smsc_ircc_open(unsigned int fir_base, unsigned int sir_base, u8 dma, u8 irq)
+static int __devinit smsc_ircc_open(unsigned int fir_base, unsigned int sir_base, u8 dma, u8 irq)
 {
        struct smsc_ircc_cb *self;
        struct net_device *dev;