[PATCH 1/3] pwm-imx: set chip.dev to prevent probe failure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



else pwmchip_add fails

Signed-off-by: Eric Bénard <eric@xxxxxxxxxx>
---
 drivers/pwm/pwm-imx.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/pwm/pwm-imx.c b/drivers/pwm/pwm-imx.c
index ef9c51b..d69275f 100644
--- a/drivers/pwm/pwm-imx.c
+++ b/drivers/pwm/pwm-imx.c
@@ -175,6 +175,7 @@ static int __devinit imx_pwm_probe(struct platform_device *pdev)
 	imx->chip.ops = &imx_pwm_ops;
 	imx->chip.base = -1;
 	imx->chip.npwm = 1;
+	imx->chip.dev = &pdev->dev;
 
 	imx->clk_enabled = 0;
 
-- 
1.7.7.6


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel



[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [CentOS ARM]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]

  Powered by Linux