提交 1c10feee 编写于 作者: M Marc Kleine-Budde

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: NMarc Kleine-Budde <mkl@pengutronix.de>
上级 62d1086e
...@@ -264,7 +264,6 @@ struct flexcan_priv { ...@@ -264,7 +264,6 @@ struct flexcan_priv {
struct clk *clk_ipg; struct clk *clk_ipg;
struct clk *clk_per; struct clk *clk_per;
struct flexcan_platform_data *pdata;
const struct flexcan_devtype_data *devtype_data; const struct flexcan_devtype_data *devtype_data;
struct regulator *reg_xceiver; struct regulator *reg_xceiver;
}; };
...@@ -1230,7 +1229,6 @@ static int flexcan_probe(struct platform_device *pdev) ...@@ -1230,7 +1229,6 @@ static int flexcan_probe(struct platform_device *pdev)
priv->regs = regs; priv->regs = regs;
priv->clk_ipg = clk_ipg; priv->clk_ipg = clk_ipg;
priv->clk_per = clk_per; priv->clk_per = clk_per;
priv->pdata = dev_get_platdata(&pdev->dev);
priv->devtype_data = devtype_data; priv->devtype_data = devtype_data;
priv->reg_xceiver = reg_xceiver; priv->reg_xceiver = reg_xceiver;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册