[PATCH] clk: efm32: fix build warning

Uwe Kleine-König u.kleine-koenig at pengutronix.de
Mon Sep 8 10:48:05 PDT 2014


On Mon, Sep 08, 2014 at 05:19:40PM +0200, Arnd Bergmann wrote:
> The normal prototype for of clk init functions is to return void,
> while efm32gg_cmu_init return an int, resulting in this harmless
> build warning:
> 
> drivers/clk/clk-efm32gg.c:81:189: warning: comparison of distinct pointer types lacks a cast [enabled by default]
>  CLK_OF_DECLARE(efm32ggcmu, "efm32gg,cmu", efm32gg_cmu_init);
> 
> This changes the return type to avoid the warning.
> 
> Signed-off-by: Arnd Bergmann <arnd at arndb.de>
I already sent the exact same patch some time ago, even the sha1 sums in
the diff match.

	Subject: [PATCH] clk/efm32gg: fix dt init prototype
	Message-Id: <1406558301-17866-1-git-send-email-u.kleine-koenig at pengutronix.de>
	Date: Mon, 28 Jul 2014 16:38:21 +0200

Thanks
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |



More information about the linux-arm-kernel mailing list