summaryrefslogtreecommitdiffstats
path: root/commands/mmc_extcsd.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2019-10-17 08:10:23 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-10-17 08:10:23 +0200
commit41be2a023dc9b8e4a790ca129b72cfa9e58be865 (patch)
tree66188250d8cc5de2c778350844d5db82a7939a40 /commands/mmc_extcsd.c
parentee6d4a74eb6efa643e7b834b32e04d01c6b29b7f (diff)
parentf3db31188849c0f7f603789d125eb60e5f139061 (diff)
downloadbarebox-41be2a023dc9b8e4a790ca129b72cfa9e58be865.tar.gz
barebox-41be2a023dc9b8e4a790ca129b72cfa9e58be865.tar.xz
Merge branch 'for-next/mmc'
Diffstat (limited to 'commands/mmc_extcsd.c')
-rw-r--r--commands/mmc_extcsd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/commands/mmc_extcsd.c b/commands/mmc_extcsd.c
index ad8e9ad19f..4f566bc805 100644
--- a/commands/mmc_extcsd.c
+++ b/commands/mmc_extcsd.c
@@ -2373,7 +2373,7 @@ static int do_mmc_extcsd(int argc, char *argv[])
u8 *dst;
int retval = 0;
int opt;
- char *devname;
+ char *devpath;
int index = 0;
int value = 0;
int write_operation = 0;
@@ -2411,9 +2411,9 @@ static int do_mmc_extcsd(int argc, char *argv[])
if (optind == argc)
return COMMAND_ERROR_USAGE;
- devname = argv[optind];
+ devpath = argv[optind];
- mci = mci_get_device_by_name(devpath_to_name(devname));
+ mci = mci_get_device_by_devpath(devpath);
if (mci == NULL) {
retval = -ENOENT;
goto error;