Skip to content

Commit

Permalink
mmc: block: don't use parameter prefix if built as module
Browse files Browse the repository at this point in the history
It's excessive to use prefix for the parameters when you do
modprobe mmc-block mmcblk.perdev_minors=16

Make this available only for built-in case.

Signed-off-by: Andy Shevchenko <[email protected]>
Signed-off-by: Ulf Hansson <[email protected]>
  • Loading branch information
andy-shev authored and storulf committed Aug 17, 2015
1 parent 8292adc commit 829b696
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/mmc/card/block.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,13 @@
#include "queue.h"

MODULE_ALIAS("mmc:block");

#ifdef KERNEL
#ifdef MODULE_PARAM_PREFIX
#undef MODULE_PARAM_PREFIX
#endif
#define MODULE_PARAM_PREFIX "mmcblk."
#endif

#define INAND_CMD38_ARG_EXT_CSD 113
#define INAND_CMD38_ARG_ERASE 0x00
Expand Down

0 comments on commit 829b696

Please sign in to comment.