xilinx: zynqmp: Add missing prototype for zynqmp_mmio_write
Add missing prototype to fix the sparse warning, warning: no previous prototype for 'zynqmp_mmio_write' [-Wmissing-prototypes]. Signed-off-by: Algapally Santosh Sagar <santoshsagar.algapally@amd.com> Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@amd.com> Link: https://lore.kernel.org/r/20230301103334.1455-2-ashok.reddy.soma@amd.com Signed-off-by: Michal Simek <michal.simek@amd.com>
This commit is contained in:
parent
9b669ef059
commit
cc24fd7859
4 changed files with 8 additions and 11 deletions
|
@ -8,9 +8,4 @@
|
|||
|
||||
void mem_map_fill(void);
|
||||
|
||||
static inline int zynqmp_mmio_write(const u32 address, const u32 mask,
|
||||
const u32 value)
|
||||
{
|
||||
BUILD_BUG();
|
||||
return -EINVAL;
|
||||
}
|
||||
int zynqmp_mmio_write(const u32 address, const u32 mask, const u32 value);
|
||||
|
|
|
@ -13,8 +13,4 @@ enum {
|
|||
void tcm_init(u8 mode);
|
||||
void mem_map_fill(void);
|
||||
|
||||
static inline int zynqmp_mmio_write(const u32 address, const u32 mask, const u32 value)
|
||||
{
|
||||
BUILD_BUG();
|
||||
return -EINVAL;
|
||||
}
|
||||
int zynqmp_mmio_write(const u32 address, const u32 mask, const u32 value);
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
#include "mmc_private.h"
|
||||
#include <log.h>
|
||||
#include <reset.h>
|
||||
#include <asm/arch/sys_proto.h>
|
||||
#include <dm/device_compat.h>
|
||||
#include <linux/err.h>
|
||||
#include <linux/libfdt.h>
|
||||
|
|
|
@ -183,6 +183,11 @@ struct zynqmp_qspi_priv {
|
|||
const struct spi_mem_op *op;
|
||||
};
|
||||
|
||||
__weak int zynqmp_mmio_write(const u32 address, const u32 mask, const u32 value)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int zynqmp_qspi_of_to_plat(struct udevice *bus)
|
||||
{
|
||||
struct zynqmp_qspi_plat *plat = dev_get_plat(bus);
|
||||
|
|
Loading…
Reference in a new issue