mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-24 20:54:24 +08:00
dm: ide: Drop the get_dev() function
This function is implemented by the legacy block functions now. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
57ebf67bad
commit
74001a2570
@ -890,13 +890,6 @@ void ide_init(void)
|
|||||||
WATCHDOG_RESET();
|
WATCHDOG_RESET();
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_PARTITIONS
|
|
||||||
struct blk_desc *ide_get_dev(int dev)
|
|
||||||
{
|
|
||||||
return (dev < CONFIG_SYS_IDE_MAXDEVICE) ? &ide_dev_desc[dev] : NULL;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* We only need to swap data if we are running on a big endian cpu. */
|
/* We only need to swap data if we are running on a big endian cpu. */
|
||||||
#if defined(__LITTLE_ENDIAN)
|
#if defined(__LITTLE_ENDIAN)
|
||||||
__weak void ide_input_swap_data(int dev, ulong *sect_buf, int words)
|
__weak void ide_input_swap_data(int dev, ulong *sect_buf, int words)
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
const struct block_drvr block_drvr[] = {
|
const struct block_drvr block_drvr[] = {
|
||||||
#if defined(CONFIG_CMD_IDE)
|
#if defined(CONFIG_CMD_IDE)
|
||||||
{ .name = "ide", .get_dev = ide_get_dev, },
|
{ .name = "ide", },
|
||||||
#endif
|
#endif
|
||||||
#if defined(CONFIG_CMD_SATA)
|
#if defined(CONFIG_CMD_SATA)
|
||||||
{.name = "sata", .get_dev = sata_get_dev, },
|
{.name = "sata", .get_dev = sata_get_dev, },
|
||||||
|
@ -73,7 +73,6 @@ typedef struct disk_partition {
|
|||||||
* error occurred.
|
* error occurred.
|
||||||
*/
|
*/
|
||||||
struct blk_desc *blk_get_dev(const char *ifname, int dev);
|
struct blk_desc *blk_get_dev(const char *ifname, int dev);
|
||||||
struct blk_desc *ide_get_dev(int dev);
|
|
||||||
struct blk_desc *sata_get_dev(int dev);
|
struct blk_desc *sata_get_dev(int dev);
|
||||||
struct blk_desc *scsi_get_dev(int dev);
|
struct blk_desc *scsi_get_dev(int dev);
|
||||||
struct blk_desc *mmc_get_dev(int dev);
|
struct blk_desc *mmc_get_dev(int dev);
|
||||||
@ -174,7 +173,6 @@ extern const struct block_drvr block_drvr[];
|
|||||||
#else
|
#else
|
||||||
static inline struct blk_desc *blk_get_dev(const char *ifname, int dev)
|
static inline struct blk_desc *blk_get_dev(const char *ifname, int dev)
|
||||||
{ return NULL; }
|
{ return NULL; }
|
||||||
static inline struct blk_desc *ide_get_dev(int dev) { return NULL; }
|
|
||||||
static inline struct blk_desc *sata_get_dev(int dev) { return NULL; }
|
static inline struct blk_desc *sata_get_dev(int dev) { return NULL; }
|
||||||
static inline struct blk_desc *scsi_get_dev(int dev) { return NULL; }
|
static inline struct blk_desc *scsi_get_dev(int dev) { return NULL; }
|
||||||
static inline struct blk_desc *mmc_get_dev(int dev) { return NULL; }
|
static inline struct blk_desc *mmc_get_dev(int dev) { return NULL; }
|
||||||
|
Loading…
Reference in New Issue
Block a user