diff options
author | Pierre Ossman <drzeus@drzeus.cx> | 2007-10-12 16:48:46 -0400 |
---|---|---|
committer | Pierre Ossman <drzeus@drzeus.cx> | 2007-10-12 16:48:46 -0400 |
commit | 77f1fd6ecd04556cbac1ca72e7a284ae313ea538 (patch) | |
tree | 2845e3e1c7db56f22fa536dc488d3d9a628993dd /drivers/mmc | |
parent | 019a5f56ec195aceadada18aaaad0f67294bdaef (diff) |
mmc: use correct unregister function for led trigger
We register a simple trigger so make sure we use the corresponding
unregister function.
(Also means we get a dummy function when triggers aren't compiled in)
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/core/host.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/core/host.c b/drivers/mmc/core/host.c index 64fbc9759a30..c65d203a846d 100644 --- a/drivers/mmc/core/host.c +++ b/drivers/mmc/core/host.c | |||
@@ -143,7 +143,7 @@ void mmc_remove_host(struct mmc_host *host) | |||
143 | 143 | ||
144 | device_del(&host->class_dev); | 144 | device_del(&host->class_dev); |
145 | 145 | ||
146 | led_trigger_unregister(host->led); | 146 | led_trigger_unregister_simple(host->led); |
147 | 147 | ||
148 | spin_lock(&mmc_host_lock); | 148 | spin_lock(&mmc_host_lock); |
149 | idr_remove(&mmc_host_idr, host->index); | 149 | idr_remove(&mmc_host_idr, host->index); |