Skip to contentSkip to conversation

pwm: spear: Remove unused *dev from struct spear_pwm_chip

PATCH Applied Axel Lin 2 participants 2 messages Apr 1, 2013 – Apr 2, 2013 PWM

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH v2 2/2 pwm: spear: Remove unused *dev from struct spear_pwm_chip

---
v2: fix the prefix in subject line

 drivers/pwm/pwm-spear.c |    3 ---
 1 file changed, 3 deletions(-)
drivers/pwm/pwm-spear.c +0 -3
index 3223b57..9563599 100644
@@ -49,13 +49,11 @@
  * @mmio_base: base address of pwm chip
  * @clk: pointer to clk structure of pwm chip
  * @chip: linux pwm chip representation
- * @dev: pointer to device structure of pwm chip
  */
 struct spear_pwm_chip {
 	void __iomem *mmio_base;
 	struct clk *clk;
 	struct pwm_chip chip;
-	struct device *dev;
 };
 
 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)
 	if (IS_ERR(pc->clk))
 		return PTR_ERR(pc->clk);
 
-	pc->dev = &pdev->dev;
 	platform_set_drvdata(pdev, pc);
 
 	pc->chip.dev = &pdev->dev;
Signature · 1 line
1.7.10.4