aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-spear.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pwm/pwm-spear.c')
-rw-r--r--drivers/pwm/pwm-spear.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/pwm/pwm-spear.c b/drivers/pwm/pwm-spear.c
index 3223b57e8f9c..9563599a117e 100644
--- a/drivers/pwm/pwm-spear.c
+++ b/drivers/pwm/pwm-spear.c
@@ -49,13 +49,11 @@
49 * @mmio_base: base address of pwm chip 49 * @mmio_base: base address of pwm chip
50 * @clk: pointer to clk structure of pwm chip 50 * @clk: pointer to clk structure of pwm chip
51 * @chip: linux pwm chip representation 51 * @chip: linux pwm chip representation
52 * @dev: pointer to device structure of pwm chip
53 */ 52 */
54struct spear_pwm_chip { 53struct spear_pwm_chip {
55 void __iomem *mmio_base; 54 void __iomem *mmio_base;
56 struct clk *clk; 55 struct clk *clk;
57 struct pwm_chip chip; 56 struct pwm_chip chip;
58 struct device *dev;
59}; 57};
60 58
61static inline struct spear_pwm_chip *to_spear_pwm_chip(struct pwm_chip *chip) 59static 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 if (IS_ERR(pc->clk)) 198 if (IS_ERR(pc->clk))
201 return PTR_ERR(pc->clk); 199 return PTR_ERR(pc->clk);
202 200
203 pc->dev = &pdev->dev;
204 platform_set_drvdata(pdev, pc); 201 platform_set_drvdata(pdev, pc);
205 202
206 pc->chip.dev = &pdev->dev; 203 pc->chip.dev = &pdev->dev;