Re: [PATCH] watchdog: Fix build error in txx9wdt.c

From: Wolfram Sang
Date: Mon Mar 26 2012 - 02:37:56 EST


On Mon, Mar 26, 2012 at 01:02:14PM +0800, Axel Lin wrote:
> we need to get clk_get_rate(txx9_imclk) before using WD_MAX_TIMEOUT.
>
> This patch fixes below build errors:
> CC drivers/watchdog/txx9wdt.o
> drivers/watchdog/txx9wdt.c:104: error: initializer element is not constant
> drivers/watchdog/txx9wdt.c:104: error: (near initialization for âtxx9wdt.max_timeoutâ)
> make[2]: *** [drivers/watchdog/txx9wdt.o] Error 1
> make[1]: *** [drivers/watchdog] Error 2
> make: *** [drivers] Error 2
>
> Signed-off-by: Axel Lin <axel.lin@xxxxxxxxx>

Acked-by: Wolfram Sang <w.sang@xxxxxxxxxxxxxx>

--
Pengutronix e.K. | Wolfram Sang |
Industrial Linux Solutions | http://www.pengutronix.de/ |

Attachment: signature.asc
Description: Digital signature