can: at91_can: remove unused variable
authorMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 27 Nov 2014 20:28:17 +0000 (21:28 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 21 Jan 2015 21:47:44 +0000 (22:47 +0100)
This patch removes the unused variable "struct net_device *dev" from the
"struct at91_priv".

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

index d0c2463b573f43ce22235b119dc17303d226fa8c..eeb4b8b6b335c293863f48fe5ac9a92f89f0127c 100644 (file)
@@ -138,7 +138,6 @@ struct at91_devtype_data {
 
 struct at91_priv {
        struct can_priv can;            /* must be the first member! */
-       struct net_device *dev;
        struct napi_struct napi;
 
        void __iomem *reg_base;
@@ -1350,7 +1349,6 @@ static int at91_can_probe(struct platform_device *pdev)
        priv->can.do_get_berr_counter = at91_get_berr_counter;
        priv->can.ctrlmode_supported = CAN_CTRLMODE_3_SAMPLES |
                CAN_CTRLMODE_LISTENONLY;
-       priv->dev = dev;
        priv->reg_base = addr;
        priv->devtype_data = *devtype_data;
        priv->clk = clk;