public inbox for linux-mmc@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Revert "mmc: block: don't use parameter prefix if built as module"
@ 2016-02-11 15:54 Ulf Hansson
  2016-02-11 15:57 ` Ulf Hansson
  2016-02-11 17:19 ` Greg KH
  0 siblings, 2 replies; 8+ messages in thread
From: Ulf Hansson @ 2016-02-11 15:54 UTC (permalink / raw)
  To: linux-mmc, Ulf Hansson
  Cc: linux-kernel, John Stultz, Greg KH, Andy Shevchenko

This reverts commit 829b6962f7e3cfc06f7c5c26269fd47ad48cf503.

Revert this change as it causes a sysfs path to change and therefore
introduces and ABI regression. More precisely Android's vold is not being
able to access /sys/module/mmcblk/parameters/perdev_minors any more, since
the path becomes changed to: "/sys/module/mmc_block/..."

Fixes: 829b6962f7e3 ("mmc: block: don't use parameter prefix if built as
module")
Reported-by: John Stultz <john.stultz@linaro.org>
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
---
 drivers/mmc/card/block.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c
index 951641a..fe207e5 100644
--- a/drivers/mmc/card/block.c
+++ b/drivers/mmc/card/block.c
@@ -47,13 +47,10 @@
 #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
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-03-03 15:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-11 15:54 [PATCH] Revert "mmc: block: don't use parameter prefix if built as module" Ulf Hansson
2016-02-11 15:57 ` Ulf Hansson
2016-02-11 21:52   ` John Stultz
2016-02-11 17:19 ` Greg KH
2016-02-12 10:06   ` Ulf Hansson
2016-02-12 16:32     ` Greg KH
2016-03-03 13:37       ` Ulf Hansson
2016-03-03 15:58         ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox