diff mbox

[4/6] power/reset/rmobile-reset.c: Fix !HAS_IOMEM build

Message ID 1426541230-928-4-git-send-email-richard@nod.at (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Richard Weinberger March 16, 2015, 9:27 p.m. UTC
Fixes:
drivers/power/reset/rmobile-reset.c: In function ‘rmobile_reset_probe’:
drivers/power/reset/rmobile-reset.c:61:2: error: implicit declaration of function ‘iounmap’ [-Werror=implicit-function-declaration]
  iounmap(sysc_base2);

Signed-off-by: Richard Weinberger <richard@nod.at>
---
 drivers/power/reset/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

Geert Uytterhoeven March 17, 2015, 8:19 a.m. UTC | #1
On Mon, Mar 16, 2015 at 10:27 PM, Richard Weinberger <richard@nod.at> wrote:
> Fixes:
> drivers/power/reset/rmobile-reset.c: In function ‘rmobile_reset_probe’:
> drivers/power/reset/rmobile-reset.c:61:2: error: implicit declaration of function ‘iounmap’ [-Werror=implicit-function-declaration]
>   iounmap(sysc_base2);
>
> Signed-off-by: Richard Weinberger <richard@nod.at>

Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe linux-pm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Sebastian Reichel March 20, 2015, 12:31 p.m. UTC | #2
Hi Richard,

On Mon, Mar 16, 2015 at 10:27:08PM +0100, Richard Weinberger wrote:
> Fixes:
> drivers/power/reset/rmobile-reset.c: In function ‘rmobile_reset_probe’:
> drivers/power/reset/rmobile-reset.c:61:2: error: implicit declaration of function ‘iounmap’ [-Werror=implicit-function-declaration]
>   iounmap(sysc_base2);
> 
> Signed-off-by: Richard Weinberger <richard@nod.at>

Thanks, applied:

http://git.infradead.org/battery-2.6.git/commit/039ab50bda5606307138b1baa1f18c7e33d357e4

-- Sebastian
diff mbox

Patch

diff --git a/drivers/power/reset/Kconfig b/drivers/power/reset/Kconfig
index 27f6646..6f791fb 100644
--- a/drivers/power/reset/Kconfig
+++ b/drivers/power/reset/Kconfig
@@ -154,6 +154,7 @@  config POWER_RESET_SYSCON
 config POWER_RESET_RMOBILE
 	tristate "Renesas R-Mobile reset driver"
 	depends on ARCH_RMOBILE || COMPILE_TEST
+	depends on HAS_IOMEM
 	help
 	  Reboot support for Renesas R-Mobile and SH-Mobile SoCs.