Revert "mmc: block: ioctl return EINVAL if cmd unknown"

This reverts commit 7c1abbfe2a.
Will fixes by aosp commit "mmc: block: fix ABI regression of mmc_blk_ioctl"

Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
This commit is contained in:
Huang, Tao 2016-03-29 19:40:03 +08:00
parent 00fc9d59e2
commit a43f5002cd

View File

@ -690,11 +690,6 @@ static int mmc_blk_ioctl_multi_cmd(struct block_device *bdev,
static int mmc_blk_ioctl(struct block_device *bdev, fmode_t mode,
unsigned int cmd, unsigned long arg)
{
#ifdef CONFIG_ARCH_ROCKCHIP
if (cmd != MMC_IOC_CMD && cmd != MMC_IOC_MULTI_CMD)
return -EINVAL;
#endif
/*
* The caller must have CAP_SYS_RAWIO, and must be calling this on the
* whole block device, not on a partition. This prevents overspray