mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-12 22:33:18 +00:00
3cd7541f93
When building with LTO, the compiler complains about type mismatch of function clk_bsc_enable() in file: arch/arm/cpu/armv7/kona-common/clk-stubs.c vs other files that define or use this function: warning: type of ‘clk_bsc_enable’ does not match original declaration. Change the type of this function to that of the other usages. Signed-off-by: Marek Behún <marek.behun@nic.cz> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
25 lines
426 B
C
25 lines
426 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Copyright 2013 Broadcom Corporation.
|
|
*/
|
|
|
|
#include <common.h>
|
|
|
|
/*
|
|
* These weak functions are available to kona architectures that don't
|
|
* require clock enables from the driver code.
|
|
*/
|
|
int __weak clk_sdio_enable(void *base, u32 rate, u32 *actual_ratep)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
int __weak clk_bsc_enable(void *base)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
int __weak clk_usb_otg_enable(void *base)
|
|
{
|
|
return 0;
|
|
}
|