diff options
Diffstat (limited to 'drivers/mmc')
| -rw-r--r-- | drivers/mmc/mxsmmc.c | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/drivers/mmc/mxsmmc.c b/drivers/mmc/mxsmmc.c index 35c6bdabb..c7200ee71 100644 --- a/drivers/mmc/mxsmmc.c +++ b/drivers/mmc/mxsmmc.c @@ -133,7 +133,8 @@ mxsmmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data)  		/* READ or WRITE */  		if (data->flags & MMC_DATA_READ) {  			ctrl0 |= SSP_CTRL0_READ; -		} else if (priv->mmc_is_wp(mmc->block_dev.dev)) { +		} else if (priv->mmc_is_wp && +			priv->mmc_is_wp(mmc->block_dev.dev)) {  			printf("MMC%d: Can not write a locked card!\n",  				mmc->block_dev.dev);  			return UNUSABLE_ERR; |