linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] pwm: renesas-tpu: Add missing pwmchip_remove() call in tpu_remove()
@ 2013-05-20 13:45 Axel Lin
  2013-05-20 13:46 ` Laurent Pinchart
  0 siblings, 1 reply; 9+ messages in thread
From: Axel Lin @ 2013-05-20 13:45 UTC (permalink / raw)
  To: Thierry Reding; +Cc: Laurent Pinchart, Simon Horman, linux-kernel, linux-sh

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 drivers/pwm/pwm-renesas-tpu.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/pwm/pwm-renesas-tpu.c b/drivers/pwm/pwm-renesas-tpu.c
index 8e6d8d7..319a6fe 100644
--- a/drivers/pwm/pwm-renesas-tpu.c
+++ b/drivers/pwm/pwm-renesas-tpu.c
@@ -432,6 +432,11 @@ static int tpu_remove(struct platform_device *pdev)
 {
 	struct tpu_device *tpu = platform_get_drvdata(pdev);
 	unsigned int i;
+	int ret;
+
+	ret = pwmchip_remove(&tpu->chip);
+	if (ret)
+		return ret;
 
 	for (i = 0; i < ARRAY_SIZE(tpu->pwms); ++i) {
 		struct tpu_pwm_device *pwm = &tpu->pwms[i];
-- 
1.8.1.2




^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-05-29 14:39 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-20 13:45 [PATCH v2] pwm: renesas-tpu: Add missing pwmchip_remove() call in tpu_remove() Axel Lin
2013-05-20 13:46 ` Laurent Pinchart
2013-05-23  1:39   ` Simon Horman
2013-05-23 19:12     ` Thierry Reding
2013-05-25  5:33       ` Simon Horman
2013-05-25 13:42       ` Laurent Pinchart
2013-05-25 15:20         ` Axel Lin
2013-05-26  9:18         ` Thierry Reding
2013-05-29 14:39           ` Laurent Pinchart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).