Skip to content

Commit

Permalink
dm: sata: Drop the get_dev() function
Browse files Browse the repository at this point in the history
This function is implemented by the legacy block functions now. Drop it.

We cannot yet make sata_dev_desc[] private to common/sata.c as it is used by
the SATA drivers. This will require the SATA interface to be reworked.

Signed-off-by: Simon Glass <[email protected]>
  • Loading branch information
sjg20 committed May 17, 2016
1 parent edd82ab commit 4e7189d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion disk/part.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const struct block_drvr block_drvr[] = {
{ .name = "ide", },
#endif
#if defined(CONFIG_CMD_SATA)
{.name = "sata", .get_dev = sata_get_dev, },
{.name = "sata", },
#endif
#if defined(CONFIG_SCSI)
{ .name = "scsi", },
Expand Down
2 changes: 0 additions & 2 deletions include/part.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ typedef struct disk_partition {
* error occurred.
*/
struct blk_desc *blk_get_dev(const char *ifname, int dev);
struct blk_desc *sata_get_dev(int dev);

/**
* mmc_select_hwpart() - Select the MMC hardware partiion on an MMC device
Expand Down Expand Up @@ -171,7 +170,6 @@ extern const struct block_drvr block_drvr[];
#else
static inline struct blk_desc *blk_get_dev(const char *ifname, int dev)
{ return NULL; }
static inline struct blk_desc *sata_get_dev(int dev) { return NULL; }
static inline int mmc_select_hwpart(int dev_num, int hwpart) { return -1; }
static inline struct blk_desc *systemace_get_dev(int dev) { return NULL; }
static inline struct blk_desc *mg_disk_get_dev(int dev) { return NULL; }
Expand Down

0 comments on commit 4e7189d

Please sign in to comment.