aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/core/host.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mmc/core/host.c')
-rw-r--r--drivers/mmc/core/host.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/core/host.c b/drivers/mmc/core/host.c
index 2b200c1cfbba..6714ea4e46ea 100644
--- a/drivers/mmc/core/host.c
+++ b/drivers/mmc/core/host.c
@@ -324,12 +324,12 @@ int mmc_add_host(struct mmc_host *host)
324 WARN_ON((host->caps & MMC_CAP_SDIO_IRQ) && 324 WARN_ON((host->caps & MMC_CAP_SDIO_IRQ) &&
325 !host->ops->enable_sdio_irq); 325 !host->ops->enable_sdio_irq);
326 326
327 led_trigger_register_simple(dev_name(&host->class_dev), &host->led);
328
329 err = device_add(&host->class_dev); 327 err = device_add(&host->class_dev);
330 if (err) 328 if (err)
331 return err; 329 return err;
332 330
331 led_trigger_register_simple(dev_name(&host->class_dev), &host->led);
332
333#ifdef CONFIG_DEBUG_FS 333#ifdef CONFIG_DEBUG_FS
334 mmc_add_host_debugfs(host); 334 mmc_add_host_debugfs(host);
335#endif 335#endif