am2150: Update nmclan_cs.c to use update PCMCIA API
authorJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 18 Sep 2014 09:33:41 +0000 (02:33 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Sep 2014 18:27:44 +0000 (14:27 -0400)
Resolves compile warning about use of a deprecated function call:
drivers/net/ethernet/amd/nmclan_cs.c: In function ‘nmclan_config’:
drivers/net/ethernet/amd/nmclan_cs.c:624:3: warning: ‘pcmcia_request_exclusive_irq’ is deprecated (declared at include/pcmcia/ds.h:213) [-Wdeprecated-declarations]
   ret = pcmcia_request_exclusive_irq(link, mace_interrupt);

Updates pcmcia_request_exclusive_irq() to pcmcia_request_irq().

CC: Roger Pao <rpao@paonet.org>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amd/nmclan_cs.c

index abf3b1581c82a2eacbf7074b3c9db9ca12fbef19..5b22764ba88d2304c3502cd987420e7f955fd793 100644 (file)
@@ -621,7 +621,7 @@ static int nmclan_config(struct pcmcia_device *link)
   ret = pcmcia_request_io(link);
   if (ret)
          goto failed;
-  ret = pcmcia_request_exclusive_irq(link, mace_interrupt);
+  ret = pcmcia_request_irq(link, mace_interrupt);
   if (ret)
          goto failed;
   ret = pcmcia_enable_device(link);