2013-04-01 04:29:55

by Axel Lin

[permalink] [raw]
Subject: [PATCH v2 2/2] pwm: spear: Remove unused *dev from struct spear_pwm_chip

Signed-off-by: Axel Lin <[email protected]>
Acked-by: Shiraz Hashim <[email protected]>
---
v2: fix the prefix in subject line
drivers/pwm/pwm-spear.c | 3 ---
1 file changed, 3 deletions(-)

diff --git a/drivers/pwm/pwm-spear.c b/drivers/pwm/pwm-spear.c
index 3223b57..9563599 100644
--- a/drivers/pwm/pwm-spear.c
+++ b/drivers/pwm/pwm-spear.c
@@ -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;
--
1.7.10.4



2013-04-02 09:39:10

by Thierry Reding

[permalink] [raw]
Subject: Re: [PATCH v2 2/2] pwm: spear: Remove unused *dev from struct spear_pwm_chip

On Mon, Apr 01, 2013 at 12:29:48PM +0800, Axel Lin wrote:
> Signed-off-by: Axel Lin <[email protected]>
> Acked-by: Shiraz Hashim <[email protected]>
> ---
> v2: fix the prefix in subject line
> drivers/pwm/pwm-spear.c | 3 ---
> 1 file changed, 3 deletions(-)

Applied, thanks.

Thierry


Attachments:
(No filename) (297.00 B)
(No filename) (836.00 B)
Download all attachments