mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 15:41:40 +00:00
ide: Drop ide_device_present()
This function is not used anymore. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
80778f505c
commit
62d13fa634
2 changed files with 0 additions and 13 deletions
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue