block: ide: Remove ide_preinit function

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>
This commit is contained in:
Tom Rini 2022-06-10 22:59:30 -04:00
parent 9836c43309
commit 713a8cbb94
4 changed files with 0 additions and 23 deletions

View 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;

View 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 */

View file

@ -19,11 +19,6 @@
. = 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

View 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