ide: Drop init for not using BLK

ALl boards use CONFIG_BLK now so this code is not used. Drop it and the
header-file #ifdef

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass 2023-04-25 10:54:29 -06:00 committed by Tom Rini
parent 0917851100
commit 00a79f21c1
2 changed files with 0 additions and 19 deletions

View file

@ -519,15 +519,6 @@ static int initr_post(void)
} }
#endif #endif
#if defined(CONFIG_IDE) && !defined(CONFIG_BLK)
static int initr_ide(void)
{
puts("IDE: ");
ide_init();
return 0;
}
#endif
#if defined(CFG_PRAM) #if defined(CFG_PRAM)
/* /*
* Export available size of memory for Linux, taking into account the * Export available size of memory for Linux, taking into account the
@ -778,9 +769,6 @@ static init_fnc_t init_sequence_r[] = {
#ifdef CONFIG_POST #ifdef CONFIG_POST
initr_post, initr_post,
#endif #endif
#if defined(CONFIG_IDE) && !defined(CONFIG_BLK)
initr_ide,
#endif
#ifdef CONFIG_LAST_STAGE_INIT #ifdef CONFIG_LAST_STAGE_INIT
INIT_FUNC_WATCHDOG_RESET INIT_FUNC_WATCHDOG_RESET
/* /*

View file

@ -18,17 +18,10 @@
void ide_init(void); void ide_init(void);
struct blk_desc; struct blk_desc;
struct udevice; struct udevice;
#ifdef CONFIG_BLK
ulong ide_read(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt, ulong ide_read(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt,
void *buffer); void *buffer);
ulong ide_write(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt, ulong ide_write(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt,
const void *buffer); const void *buffer);
#else
ulong ide_read(struct blk_desc *block_dev, lbaint_t blknr, lbaint_t blkcnt,
void *buffer);
ulong ide_write(struct blk_desc *block_dev, lbaint_t blknr, lbaint_t blkcnt,
const void *buffer);
#endif
#if defined(CONFIG_OF_IDE_FIXUP) #if defined(CONFIG_OF_IDE_FIXUP)
int ide_device_present(int dev); int ide_device_present(int dev);