]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ARM: OMAP2+: Remove obsoleted declaration for gpmc_onenand_init
authorGaosheng Cui <cuigaosheng1@huawei.com>
Mon, 26 Aug 2024 03:58:23 +0000 (11:58 +0800)
committerKevin Hilman <khilman@baylibre.com>
Fri, 30 Aug 2024 17:57:24 +0000 (10:57 -0700)
The gpmc_onenand_init() have been removed since
commit 2514830b8b8c ("ARM: OMAP2+: Remove gpmc-onenand"), and now
it is useless, so remove it.

Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
Link: https://lore.kernel.org/r/20240826035823.4043171-1-cuigaosheng1@huawei.com
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
include/linux/omap-gpmc.h

index 082841908fe7f1e9542bb22cf1f0dde90b1717f4..c9e3843d2dd56c69f4225639c0ab3e992ee46edd 100644 (file)
@@ -84,13 +84,3 @@ extern void gpmc_read_settings_dt(struct device_node *np,
 struct gpmc_timings;
 struct omap_nand_platform_data;
 struct omap_onenand_platform_data;
-
-#if IS_ENABLED(CONFIG_MTD_ONENAND_OMAP2)
-extern int gpmc_onenand_init(struct omap_onenand_platform_data *d);
-#else
-#define board_onenand_data     NULL
-static inline int gpmc_onenand_init(struct omap_onenand_platform_data *d)
-{
-       return 0;
-}
-#endif