can: flexcan: remove write-only member pdata of struct flexcan_priv
authorMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 4 Jul 2016 12:43:53 +0000 (14:43 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 6 Feb 2017 14:13:28 +0000 (15:13 +0100)
This patch removes the write only member pdata from the struct
flexcan_priv.

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

index 74909e5..44a5aae 100644 (file)
@@ -264,7 +264,6 @@ struct flexcan_priv {
 
        struct clk *clk_ipg;
        struct clk *clk_per;
-       struct flexcan_platform_data *pdata;
        const struct flexcan_devtype_data *devtype_data;
        struct regulator *reg_xceiver;
 };
@@ -1230,7 +1229,6 @@ static int flexcan_probe(struct platform_device *pdev)
        priv->regs = regs;
        priv->clk_ipg = clk_ipg;
        priv->clk_per = clk_per;
-       priv->pdata = dev_get_platdata(&pdev->dev);
        priv->devtype_data = devtype_data;
        priv->reg_xceiver = reg_xceiver;