diff options
author | Rob Herring <robh@kernel.org> | 2024-02-01 22:29:30 +0300 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2024-03-07 03:30:59 +0300 |
commit | 3e62273ac63aeeb80bd3b24fa0102a4de9972d83 (patch) | |
tree | 593485c2786baf3d258d489f8a6eee273b2d4533 /drivers/soc/fsl/qbman/dpaa_sys.h | |
parent | 4bfb270378c995773960fb0a8c908fc009607a1b (diff) | |
download | linux-3e62273ac63aeeb80bd3b24fa0102a4de9972d83.tar.xz |
soc: fsl: qbman: Remove RESERVEDMEM_OF_DECLARE usage
There is no reason to use RESERVEDMEM_OF_DECLARE() as the initialization
hook just saves off the base address and size. Use of
RESERVEDMEM_OF_DECLARE() is reserved for non-driver code and
initialization which must be done early. For qbman, retrieving the
address and size can be done in probe just as easily.
Link: https://lore.kernel.org/r/20240201192931.1324130-1-robh@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/soc/fsl/qbman/dpaa_sys.h')
-rw-r--r-- | drivers/soc/fsl/qbman/dpaa_sys.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/soc/fsl/qbman/dpaa_sys.h b/drivers/soc/fsl/qbman/dpaa_sys.h index ae8afa552b1e..16485bde9636 100644 --- a/drivers/soc/fsl/qbman/dpaa_sys.h +++ b/drivers/soc/fsl/qbman/dpaa_sys.h @@ -101,8 +101,8 @@ static inline u8 dpaa_cyc_diff(u8 ringsize, u8 first, u8 last) #define DPAA_GENALLOC_OFF 0x80000000 /* Initialize the devices private memory region */ -int qbman_init_private_mem(struct device *dev, int idx, dma_addr_t *addr, - size_t *size); +int qbman_init_private_mem(struct device *dev, int idx, const char *compat, + dma_addr_t *addr, size_t *size); /* memremap() attributes for different platforms */ #ifdef CONFIG_PPC |