From: Sudip Mukherjee <sudipm.mukherjee@gmail•com>
To: Thierry Reding <thierry.reding@gmail•com>,
Brian Norris <computersforpeace@gmail•com>,
Gregory Fong <gregory.0xf0@gmail•com>,
Florian Fainelli <f.fainelli@gmail•com>
Cc: linux-kernel@vger•kernel.org, linux-pwm@vger•kernel.org,
linux-arm-kernel@lists•infradead.org,
Stephen Rothwell <sfr@canb•auug.org.au>,
linux-next@vger•kernel.org,
Sudip Mukherjee <sudipm.mukherjee@gmail•com>
Subject: [PATCH] pwm: bcm7038: fix build failure
Date: Tue, 6 Oct 2015 16:50:54 +0530 [thread overview]
Message-ID: <1444130454-17769-1-git-send-email-sudipm.mukherjee@gmail.com> (raw)
In-Reply-To: <20151006182522.09d2d3f5@canb.auug.org.au>
While building arm allmodconfig, the build fails with:
In function 'brcmstb_pwm_suspend': error: 'dev' undeclared (first use in this function)
In function 'brcmstb_pwm_resume': error: 'dev' undeclared (first use in this function)
The function was using dev but the argument that it received was named
as "d". Declare dev and fix the build fail.
Fixes: 9a47354fe63a ("pwm: Add Broadcom BCM7038 PWM controller support")
Signed-off-by: Sudip Mukherjee <sudip@vectorindia•org>
---
drivers/pwm/pwm-brcmstb.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/pwm/pwm-brcmstb.c b/drivers/pwm/pwm-brcmstb.c
index 083e3ef..423ce08 100644
--- a/drivers/pwm/pwm-brcmstb.c
+++ b/drivers/pwm/pwm-brcmstb.c
@@ -304,7 +304,7 @@ static int brcmstb_pwm_remove(struct platform_device *pdev)
}
#ifdef CONFIG_PM_SLEEP
-static int brcmstb_pwm_suspend(struct device *d)
+static int brcmstb_pwm_suspend(struct device *dev)
{
struct brcmstb_pwm *p = dev_get_drvdata(dev);
@@ -313,7 +313,7 @@ static int brcmstb_pwm_suspend(struct device *d)
return 0;
}
-static int brcmstb_pwm_resume(struct device *d)
+static int brcmstb_pwm_resume(struct device *dev)
{
struct brcmstb_pwm *p = dev_get_drvdata(dev);
--
1.9.1
prev parent reply other threads:[~2015-10-06 11:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-06 7:25 linux-next: Tree for Oct 6 Stephen Rothwell
2015-10-06 11:20 ` Sudip Mukherjee [this message]
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=1444130454-17769-1-git-send-email-sudipm.mukherjee@gmail.com \
--to=sudipm.mukherjee@gmail$(echo .)com \
--cc=computersforpeace@gmail$(echo .)com \
--cc=f.fainelli@gmail$(echo .)com \
--cc=gregory.0xf0@gmail$(echo .)com \
--cc=linux-arm-kernel@lists$(echo .)infradead.org \
--cc=linux-kernel@vger$(echo .)kernel.org \
--cc=linux-next@vger$(echo .)kernel.org \
--cc=linux-pwm@vger$(echo .)kernel.org \
--cc=sfr@canb$(echo .)auug.org.au \
--cc=thierry.reding@gmail$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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