can: cc770: fix sparse warning for cc770_interrupt
authorMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 6 Feb 2012 21:24:57 +0000 (22:24 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 2 Jul 2012 09:07:24 +0000 (11:07 +0200)
Make cc770_interrupt static to fix the following sparse warning:
drivers/net/can/cc770/cc770.c:699:13: warning: symbol
'cc770_interrupt' was not declared. Should it be static?

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/cc770/cc770.c

index d42a6a7396f22ea7325a690d5e061f8f995aca1b..a138db11cbf096d9fb14aeac714b2798ac1f7ba8 100644 (file)
@@ -695,7 +695,7 @@ static void cc770_tx_interrupt(struct net_device *dev, unsigned int o)
        netif_wake_queue(dev);
 }
 
-irqreturn_t cc770_interrupt(int irq, void *dev_id)
+static irqreturn_t cc770_interrupt(int irq, void *dev_id)
 {
        struct net_device *dev = (struct net_device *)dev_id;
        struct cc770_priv *priv = netdev_priv(dev);