From: eric@eukrea.com (Eric Bénard)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/3] pwm-imx: set chip.dev to prevent probe failure
Date: Sun, 29 Apr 2012 21:02:28 +0200 [thread overview]
Message-ID: <1335726150-22600-1-git-send-email-eric@eukrea.com> (raw)
else pwmchip_add fails
Signed-off-by: Eric B?nard <eric@eukrea.com>
---
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
next reply other threads:[~2012-04-29 19:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-29 19:02 Eric Bénard [this message]
2012-04-29 19:02 ` [PATCH 2/3] pwm-core: fix error handling in pwmchip_add Eric Bénard
2012-04-29 19:02 ` [PATCH 3/3] pwm: fix pwmchip_add return code test Eric Bénard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1335726150-22600-1-git-send-email-eric@eukrea.com \
--to=eric@eukrea.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).