diff mbox

[U-Boot,v2,29/44] dm: sata: Drop the get_dev() function

Message ID 1462124192-8748-30-git-send-email-sjg@chromium.org
State Accepted
Delegated to: Simon Glass
Headers show

Commit Message

Simon Glass May 1, 2016, 5:36 p.m. UTC
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 <sjg@chromium.org>
---

Changes in v2: None

 disk/part.c    | 2 +-
 include/part.h | 2 --
 2 files changed, 1 insertion(+), 3 deletions(-)

Comments

Simon Glass May 14, 2016, 7:36 p.m. UTC | #1
On 1 May 2016 at 11:36, Simon Glass <sjg@chromium.org> wrote:
> 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 <sjg@chromium.org>
> ---
>
> Changes in v2: None
>
>  disk/part.c    | 2 +-
>  include/part.h | 2 --
>  2 files changed, 1 insertion(+), 3 deletions(-)

Applied to u-boot-dm.
diff mbox

Patch

diff --git a/disk/part.c b/disk/part.c
index 67cb6c0..4fc774b 100644
--- a/disk/part.c
+++ b/disk/part.c
@@ -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", },
diff --git a/include/part.h b/include/part.h
index ecb049f..74bb5d6 100644
--- a/include/part.h
+++ b/include/part.h
@@ -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
@@ -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; }