]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
block: ide: Remove ide_preinit function
authorTom Rini <trini@konsulko.com>
Sat, 11 Jun 2022 02:59:30 +0000 (22:59 -0400)
committerTom Rini <trini@konsulko.com>
Tue, 28 Jun 2022 21:03:32 +0000 (17:03 -0400)
The only platform currently that defines an ide_preinit function has an
empty one that immediately returns.  Remove this hook.

Signed-off-by: Tom Rini <trini@konsulko.com>
board/freescale/m5253demo/m5253demo.c
drivers/block/ide.c
include/configs/M5253DEMO.h
include/ide.h

index 2a4703579dabbec56ec423be73d0dbd5841fdbf3..85f5f0c034094a89988e32698c526bd15750f7de 100644 (file)
@@ -93,11 +93,6 @@ int testdram(void)
 
 #ifdef CONFIG_IDE
 #include <ata.h>
-int ide_preinit(void)
-{
-       return (0);
-}
-
 void ide_set_reset(int idereset)
 {
        atac_t *ata = (atac_t *) CONFIG_SYS_ATA_BASE_ADDR;
index e8518ff3a11a2c38974aa1322d7e5b15789db1ba..3270a9f032f3de0cb0717bd998be789242aae078 100644 (file)
@@ -695,15 +695,6 @@ void ide_init(void)
        unsigned char c;
        int i, bus;
 
-#ifdef CONFIG_IDE_PREINIT
-       WATCHDOG_RESET();
-
-       if (ide_preinit()) {
-               puts("ide_preinit failed\n");
-               return;
-       }
-#endif /* CONFIG_IDE_PREINIT */
-
        WATCHDOG_RESET();
 
        /* ATAPI Drives seems to need a proper IDE Reset */
index 384217a0d989f202522d95572409edb810f0d20b..840d3b4672e64263d6e948ee0313da67f3ec7bca 100644 (file)
        . = DEFINED(env_offset) ? env_offset : .; \
        env/embedded.o(.text*);
 
-#ifdef CONFIG_IDE
-/* ATA */
-#      define CONFIG_IDE_PREINIT       1
-#endif
-
 #ifdef CONFIG_DRIVER_DM9000
 #      define CONFIG_DM9000_BASE       (CONFIG_SYS_CS1_BASE | 0x300)
 #      define DM9000_IO                CONFIG_DM9000_BASE
index 2994b7a76226baed2d819c45a6e6d554afc66f60..426cef4e39e094c6cb618326f8050e8a125ff269 100644 (file)
@@ -33,10 +33,6 @@ ulong ide_write(struct blk_desc *block_dev, lbaint_t blknr, lbaint_t blkcnt,
                const void *buffer);
 #endif
 
-#ifdef CONFIG_IDE_PREINIT
-int ide_preinit(void);
-#endif
-
 #if defined(CONFIG_OF_IDE_FIXUP)
 int ide_device_present(int dev);
 #endif