On Mon, Apr 22, 2013 at 04:41:03PM +0200, Michal Simek wrote: > Watchdog can be used on Microblaze, PPC and Zynq hw designs. [snip] > +++ b/drivers/watchdog/xilinx_tb_wdt.c [snip] > +#define watchdog_base ((struct watchdog_regs *)CONFIG_WATCHDOG_BASEADDR)
Just do: static struct watchdog_regs *watchdog_base = CONFIG_WATCHDOG_BASEADDR; [snip] > +/* watchdog */ > +#if defined(XILINX_WATCHDOG_BASEADDR) && defined(XILINX_WATCHDOG_IRQ) > +# define CONFIG_WATCHDOG_BASEADDR XILINX_WATCHDOG_BASEADDR > +# define CONFIG_WATCHDOG_IRQ XILINX_WATCHDOG_IRQ > +# define CONFIG_HW_WATCHDOG 1 > +# define CONFIG_XILINX_TB_WATCHDOG 1 Just '#define' and no 1 for options that we only need to set please, thanks. -- Tom
signature.asc
Description: Digital signature
_______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot