]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ide: Drop ide_device_present()
authorSimon Glass <sjg@chromium.org>
Tue, 25 Apr 2023 16:54:31 +0000 (10:54 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 27 Apr 2023 17:51:06 +0000 (13:51 -0400)
This function is not used anymore. Drop it.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/block/ide.c
include/ide.h

index 13770484b36aed04117f3c04e5c37ea9d9e47e51..b5be022a0673e0cfab00ece387b8f4f1f47329a9 100644 (file)
@@ -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);
index 3f36b4340d061b9cf8b56734befe361e51c21a83..09b0117879f7cf2883165782a739ec0dc36c29fa 100644 (file)
@@ -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
  */