From: Marc Kleine-Budde Date: Mon, 4 Jul 2016 12:43:53 +0000 (+0200) Subject: can: flexcan: remove write-only member pdata of struct flexcan_priv X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1c10feee3e033b898a293d813ef4a4ebfb88dba2;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git can: flexcan: remove write-only member pdata of struct flexcan_priv This patch removes the write only member pdata from the struct flexcan_priv. Signed-off-by: Marc Kleine-Budde --- diff --git a/drivers/net/can/flexcan.c b/drivers/net/can/flexcan.c index 74909e599f31..44a5aae3cefe 100644 --- a/drivers/net/can/flexcan.c +++ b/drivers/net/can/flexcan.c @@ -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;