All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] pwm: Fix compile error in pwm_get()
@ 2017-02-10 11:44 Hans de Goede
  2017-02-10 14:23 ` Thierry Reding
  0 siblings, 1 reply; 2+ messages in thread
From: Hans de Goede @ 2017-02-10 11:44 UTC (permalink / raw)
  To: Thierry Reding; +Cc: Hans de Goede, linux-pwm

commit bf71f4e8fb95 ("pwm: Try to load modules during pwm_get()") had
error checking added to the request_module call it adds, before merging
it. But the "err" variable the error checking uses was never declared,
this commit fixes this.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
Feel free to squash this into the original commit
---
 drivers/pwm/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c
index 50a33ca..4f3c0a1 100644
--- a/drivers/pwm/core.c
+++ b/drivers/pwm/core.c
@@ -831,7 +831,7 @@ struct pwm_device *pwm_get(struct device *dev, const char *con_id)
 	 * deferred probe mechanism.
 	 */
 	if (!chip && chosen->module) {
-		err = request_module(chosen->module);
+		int err = request_module(chosen->module);
 		if (err == 0)
 			chip = pwmchip_find_by_name(chosen->provider);
 	}
-- 
2.9.3

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

end of thread, other threads:[~2017-02-10 14:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-10 11:44 [PATCH] pwm: Fix compile error in pwm_get() Hans de Goede
2017-02-10 14:23 ` Thierry Reding

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.