diff options
author | Fabio Baltieri <fabio.baltieri@linaro.org> | 2013-06-17 06:08:15 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-06-17 12:18:33 -0400 |
commit | 97e3d9e32f12dfb19c38fdd692db76523608febc (patch) | |
tree | bdef1cae7ffd93f7ac30a4a310aa0828d66ef38a /drivers/spi/spi-pl022.c | |
parent | ac68936652819dad1e5decefddb1c7fc1d7bc364 (diff) |
spi: pl022: remove unused ret and pins_state variables
Removes the warnings:
drivers/spi/spi-pl022.c: In function 'pl022_suspend_resources':
drivers/spi/spi-pl022.c:2322:24: warning: unused variable 'pins_state' [-Wunused-variable]
drivers/spi/spi-pl022.c:2321:6: warning: unused variable 'ret' [-Wunused-variable]
drivers/spi/spi-pl022.c: In function 'pl022_resume_resources':
drivers/spi/spi-pl022.c:2334:6: warning: unused variable 'ret' [-Wunused-variable]
introduced in:
f1c9cf0 spi: pl022: use pinctrl PM helpers
Signed-off-by: Fabio Baltieri <fabio.baltieri@linaro.org>
Acked-by: Mark Brown <broonie@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/spi/spi-pl022.c')
-rw-r--r-- | drivers/spi/spi-pl022.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/spi/spi-pl022.c b/drivers/spi/spi-pl022.c index 5b8cd1524187..16247c255688 100644 --- a/drivers/spi/spi-pl022.c +++ b/drivers/spi/spi-pl022.c | |||
@@ -2317,9 +2317,6 @@ pl022_remove(struct amba_device *adev) | |||
2317 | */ | 2317 | */ |
2318 | static void pl022_suspend_resources(struct pl022 *pl022, bool runtime) | 2318 | static void pl022_suspend_resources(struct pl022 *pl022, bool runtime) |
2319 | { | 2319 | { |
2320 | int ret; | ||
2321 | struct pinctrl_state *pins_state; | ||
2322 | |||
2323 | clk_disable(pl022->clk); | 2320 | clk_disable(pl022->clk); |
2324 | 2321 | ||
2325 | if (runtime) | 2322 | if (runtime) |
@@ -2330,8 +2327,6 @@ static void pl022_suspend_resources(struct pl022 *pl022, bool runtime) | |||
2330 | 2327 | ||
2331 | static void pl022_resume_resources(struct pl022 *pl022, bool runtime) | 2328 | static void pl022_resume_resources(struct pl022 *pl022, bool runtime) |
2332 | { | 2329 | { |
2333 | int ret; | ||
2334 | |||
2335 | /* First go to the default state */ | 2330 | /* First go to the default state */ |
2336 | pinctrl_pm_select_default_state(&pl022->adev->dev); | 2331 | pinctrl_pm_select_default_state(&pl022->adev->dev); |
2337 | if (!runtime) | 2332 | if (!runtime) |