* [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
* Re: [PATCH] pwm: Fix compile error in pwm_get()
2017-02-10 11:44 [PATCH] pwm: Fix compile error in pwm_get() Hans de Goede
@ 2017-02-10 14:23 ` Thierry Reding
0 siblings, 0 replies; 2+ messages in thread
From: Thierry Reding @ 2017-02-10 14:23 UTC (permalink / raw)
To: Hans de Goede; +Cc: linux-pwm
[-- Attachment #1: Type: text/plain, Size: 1227 bytes --]
On Fri, Feb 10, 2017 at 12:44:30PM +0100, Hans de Goede wrote:
> 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(-)
You had me really confused there for a little bit. Turns out I had two
versions of that patch in my tree, one with the missing variable
declaration and another where I had already added it after build tests
had failed. The old patch stuck around because it was part of a branch
that I had created in case anyone wanted to pull this into the ACPI
tree to resolve dependencies and I had forgotten to rebase that branch
onto the fixed patch.
I've pushed a new set of branches, so this confusion should be gone by
tomorrow. It's a little odd that you even saw this failing to build,
since none of the farms seemed to have noticed, and the file in
linux-next is actually the correct one.
Thierry
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [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.