The clk_speed argument is used as input to clocksource_hz2mult() which has a u32 as parameter. While u32 and unsigned are equivalent in barebox, it's still a good idea to differentiate between "normal"-sized integers and integers that are explicitly meant to be exactly 32-bit.
No functional change. Suggested-by: Daniel Lezcano <daniel.lezc...@linaro.org> Signed-off-by: Ahmad Fatoum <a.fat...@pengutronix.de> --- drivers/clocksource/timer-ti-dm.c | 2 +- include/mach/omap/am33xx-clock.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/clocksource/timer-ti-dm.c b/drivers/clocksource/timer-ti-dm.c index 572ea2fdc945..7fa159723b11 100644 --- a/drivers/clocksource/timer-ti-dm.c +++ b/drivers/clocksource/timer-ti-dm.c @@ -71,7 +71,7 @@ struct omap_dmtimer_data { int (*get_clock)(struct device *dev); }; -int omap_dmtimer_init(void __iomem *mmio_start, unsigned clk_speed) +int omap_dmtimer_init(void __iomem *mmio_start, u32 clk_speed) { base = mmio_start; diff --git a/include/mach/omap/am33xx-clock.h b/include/mach/omap/am33xx-clock.h index b064337ac4f8..8dbe6efe863c 100644 --- a/include/mach/omap/am33xx-clock.h +++ b/include/mach/omap/am33xx-clock.h @@ -191,7 +191,6 @@ void am33xx_pll_init(int mpupll_M, int ddrpll_M); void am33xx_enable_ddr_clocks(void); int am33xx_get_osc_clock(void); -int omap_dmtimer_init(void __iomem *mmio_start, - unsigned clk_speed); +int omap_dmtimer_init(void __iomem *mmio_start, u32 clk_speed); #endif /* endif _AM33XX_CLOCKS_H_ */ -- 2.39.5