ARM: imx8m: fix imx_eqos_txclk_set_rate() type mismatch for LTO
authorMarek Behún <marek.behun@nic.cz>
Thu, 20 May 2021 11:24:16 +0000 (13:24 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 24 May 2021 18:21:30 +0000 (14:21 -0400)
commite8bb990fe77009cef4ebdbacb763d66f84291a87
treecaa8994a29502260170dec796ff848f19a34a2db
parent3cd7541f932164db34c82748dc5ead4020a0eb2e
ARM: imx8m: fix imx_eqos_txclk_set_rate() type mismatch for LTO

When building imx8mp_evk_defconfig with LTO, the compiler complains
about type mismatch of function imx_eqos_txclk_set_rate() in file
  drivers/net/dwc_eth_qos.c:845:12
which contains a weak definition of this function, vs file
  arch/arm/mach-imx/imx8m/clock_imx8mm.c
which contains an implementation.

Change the type of this function in the implementation to fix this.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/arm/mach-imx/imx8m/clock_imx8mm.c