aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass2023-04-25 10:54:31 -0600
committerTom Rini2023-04-27 13:51:06 -0400
commit62d13fa6349e66f839fa855ac3f7ec71a1adfe87 (patch)
tree105c0f998b00f1a1b64fa690049988f54aac46b9
parent80778f505c8c7ee18c24cfbcfe011f8a2abf7bcd (diff)
ide: Drop ide_device_present()
This function is not used anymore. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r--drivers/block/ide.c9
-rw-r--r--include/ide.h4
2 files changed, 0 insertions, 13 deletions
diff --git a/drivers/block/ide.c b/drivers/block/ide.c
index 13770484b36..b5be022a067 100644
--- a/drivers/block/ide.c
+++ b/drivers/block/ide.c
@@ -1012,15 +1012,6 @@ WR_OUT:
return n;
}
-#if defined(CONFIG_OF_IDE_FIXUP)
-int ide_device_present(int dev)
-{
- if (dev >= CONFIG_SYS_IDE_MAXBUS)
- return 0;
- return ide_dev_desc[dev].type == DEV_TYPE_UNKNOWN ? 0 : 1;
-}
-#endif
-
static int ide_blk_probe(struct udevice *udev)
{
struct blk_desc *desc = dev_get_uclass_plat(udev);
diff --git a/include/ide.h b/include/ide.h
index 3f36b4340d0..09b0117879f 100644
--- a/include/ide.h
+++ b/include/ide.h
@@ -22,10 +22,6 @@ ulong ide_read(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt,
ulong ide_write(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt,
const void *buffer);
-#if defined(CONFIG_OF_IDE_FIXUP)
-int ide_device_present(int dev);
-#endif
-
/*
* I/O function overrides
*/