]> git.baikalelectronics.ru Git - kernel.git/commit
amba: reorder functions
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 26 Jan 2021 16:58:32 +0000 (17:58 +0100)
committerUwe Kleine-König <uwe@kleine-koenig.org>
Tue, 2 Feb 2021 13:24:20 +0000 (14:24 +0100)
commite0e3a2d5b7f4290b0a2a4a22f094581f9b8cbca8
tree0d19bed4be282a5acb612523fb029890b60c90ef
parentefc354321c7be9986497c2e73fa14781a60b9264
amba: reorder functions

Put helpers (here: amba_get_enable_pclk and amba_put_disable_pclk) at
the top of the file and then define callbacks directly before the
structs they are used in; in the same order.

Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20210126165835.687514-3-u.kleine-koenig@pengutronix.de
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
drivers/amba/bus.c