提交 b3fef7f1 编写于 作者: A Axel Lin 提交者: Thierry Reding

pwm: spear: Remove unused *dev from struct spear_pwm_chip

Signed-off-by: NAxel Lin <axel.lin@ingics.com>
Acked-by: NShiraz Hashim <shiraz.hashim@st.com>
Acked-by: NViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: NThierry Reding <thierry.reding@avionic-design.de>
上级 4e61573d
...@@ -49,13 +49,11 @@ ...@@ -49,13 +49,11 @@
* @mmio_base: base address of pwm chip * @mmio_base: base address of pwm chip
* @clk: pointer to clk structure of pwm chip * @clk: pointer to clk structure of pwm chip
* @chip: linux pwm chip representation * @chip: linux pwm chip representation
* @dev: pointer to device structure of pwm chip
*/ */
struct spear_pwm_chip { struct spear_pwm_chip {
void __iomem *mmio_base; void __iomem *mmio_base;
struct clk *clk; struct clk *clk;
struct pwm_chip chip; struct pwm_chip chip;
struct device *dev;
}; };
static inline struct spear_pwm_chip *to_spear_pwm_chip(struct pwm_chip *chip) static inline struct spear_pwm_chip *to_spear_pwm_chip(struct pwm_chip *chip)
...@@ -200,7 +198,6 @@ static int spear_pwm_probe(struct platform_device *pdev) ...@@ -200,7 +198,6 @@ static int spear_pwm_probe(struct platform_device *pdev)
if (IS_ERR(pc->clk)) if (IS_ERR(pc->clk))
return PTR_ERR(pc->clk); return PTR_ERR(pc->clk);
pc->dev = &pdev->dev;
platform_set_drvdata(pdev, pc); platform_set_drvdata(pdev, pc);
pc->chip.dev = &pdev->dev; pc->chip.dev = &pdev->dev;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册