mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-10 07:00:48 +00:00
mmc: core: Remove the redundant mmc_send_ext_csd() API
Previous patches has replaced the calls to mmc_send_ext_csd() into mmc_get_ext_csd(), thus mmc_send_ext_csd() has become redundant. Let's remove it. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
parent
b2cada73a8
commit
2fc91e8b0e
@ -378,13 +378,6 @@ err:
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
int mmc_send_ext_csd(struct mmc_card *card, u8 *ext_csd)
|
|
||||||
{
|
|
||||||
return mmc_send_cxd_data(card, card->host, MMC_SEND_EXT_CSD,
|
|
||||||
ext_csd, 512);
|
|
||||||
}
|
|
||||||
EXPORT_SYMBOL_GPL(mmc_send_ext_csd);
|
|
||||||
|
|
||||||
int mmc_get_ext_csd(struct mmc_card *card, u8 **new_ext_csd)
|
int mmc_get_ext_csd(struct mmc_card *card, u8 **new_ext_csd)
|
||||||
{
|
{
|
||||||
int err;
|
int err;
|
||||||
@ -404,7 +397,8 @@ int mmc_get_ext_csd(struct mmc_card *card, u8 **new_ext_csd)
|
|||||||
if (!ext_csd)
|
if (!ext_csd)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
err = mmc_send_ext_csd(card, ext_csd);
|
err = mmc_send_cxd_data(card, card->host, MMC_SEND_EXT_CSD, ext_csd,
|
||||||
|
512);
|
||||||
if (err)
|
if (err)
|
||||||
kfree(ext_csd);
|
kfree(ext_csd);
|
||||||
else
|
else
|
||||||
|
@ -154,7 +154,6 @@ extern void mmc_start_bkops(struct mmc_card *card, bool from_exception);
|
|||||||
extern int __mmc_switch(struct mmc_card *, u8, u8, u8, unsigned int, bool,
|
extern int __mmc_switch(struct mmc_card *, u8, u8, u8, unsigned int, bool,
|
||||||
bool, bool);
|
bool, bool);
|
||||||
extern int mmc_switch(struct mmc_card *, u8, u8, u8, unsigned int);
|
extern int mmc_switch(struct mmc_card *, u8, u8, u8, unsigned int);
|
||||||
extern int mmc_send_ext_csd(struct mmc_card *card, u8 *ext_csd);
|
|
||||||
extern int mmc_get_ext_csd(struct mmc_card *card, u8 **new_ext_csd);
|
extern int mmc_get_ext_csd(struct mmc_card *card, u8 **new_ext_csd);
|
||||||
|
|
||||||
#define MMC_ERASE_ARG 0x00000000
|
#define MMC_ERASE_ARG 0x00000000
|
||||||
|
Loading…
x
Reference in New Issue
Block a user