Skip to contentSkip to conversation

omap_hsmmc: Add missing probe handler hook

PATCH In review Roger Quadros 2 participants 3 messages Oct 2, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 omap_hsmmc: Add missing probe handler hook

The missing probe handler hook will never probe the driver. Add it back. Fixes broken MMC on OMAP.

We use platform_driver_probe() API since omap_hsmmc is not a hot-pluggable device.

---
 drivers/mmc/host/omap_hsmmc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mmc/host/omap_hsmmc.c +1 -1
index 4487cc0..0aecaae 100644
@@ -2013,7 +2013,7 @@ static struct platform_driver omap_hsmmc_driver = {
 static int __init omap_hsmmc_init(void)
 {
 	/* Register the MMC driver */
-	return platform_driver_register(&omap_hsmmc_driver);
+	return platform_driver_probe(&omap_hsmmc_driver, omap_hsmmc_probe);
 }
 
 static void __exit omap_hsmmc_cleanup(void)
Signature · 1 line
1.6.0.4
#1 lore raw
Quoted 16 lines · Quadros Roger (EXT-Teleca/Helsinki)

The missing probe handler hook will never probe the driver. Add it back. Fixes broken MMC on OMAP.

We use platform_driver_probe() API since omap_hsmmc is not a hot-pluggable device.

---
 drivers/mmc/host/omap_hsmmc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mmc/host/omap_hsmmc.c +0 -0
index 4487cc0..0aecaae 100644

drivers/mmc/host/omap_hsmmc.c static struct platform_driver omap_hsmmc_driver = { · line 2019

Quoted 8 lines
drivers/mmc/host/omap_hsmmc.c +1 -1
@@ -2013,7 +2013,7 @@ static struct platform_driver omap_hsmmc_driver = {
 static int __init omap_hsmmc_init(void)
 {
 	/* Register the MMC driver */
-	return platform_driver_register(&omap_hsmmc_driver);
+	return platform_driver_probe(&omap_hsmmc_driver, omap_hsmmc_probe);
 }
 
 static void __exit omap_hsmmc_cleanup(void)

Tony,

Since you've already applied my earlier patch (v1), you may used the attached
version instead. The attached patch will apply on current head with commit id

30e0c4a059d83886690381222e14f35540c7f017

cheers,
-roger

#2 lore raw
Quoted 27 lines · Roger Quadros
Quoted 16 lines · Quadros Roger (EXT-Teleca/Helsinki)

The missing probe handler hook will never probe the driver. Add it back. Fixes broken MMC on OMAP.

We use platform_driver_probe() API since omap_hsmmc is not a hot-pluggable device.

---
 drivers/mmc/host/omap_hsmmc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mmc/host/omap_hsmmc.c +0 -0
index 4487cc0..0aecaae 100644

drivers/mmc/host/omap_hsmmc.c static struct platform_driver omap_hsmmc_driver = { · line 2018

Quoted 7 lines
drivers/mmc/host/omap_hsmmc.c +1 -1
@@ -2013,7 +2013,7 @@ static struct platform_driver omap_hsmmc_driver = {
 static int __init omap_hsmmc_init(void)
 {
 	/* Register the MMC driver */
-	return platform_driver_register(&omap_hsmmc_driver);
+	return platform_driver_probe(&omap_hsmmc_driver, omap_hsmmc_probe);
 }
  static void __exit omap_hsmmc_cleanup(void)

Tony,

Quoted 5 lines

Since you've already applied my earlier patch (v1), you may used the
attached version instead. The attached patch will apply on current head with commit id

30e0c4a059d83886690381222e14f35540c7f017

Thanks, will update in omap-fixes-testing.

Tony