Skip to content

Commit

Permalink
mmc: use correct unregister function for led trigger
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Pierre Ossman committed Oct 12, 2007
1 parent 019a5f5 commit 77f1fd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mmc/core/host.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ void mmc_remove_host(struct mmc_host *host)

device_del(&host->class_dev);

led_trigger_unregister(host->led);
led_trigger_unregister_simple(host->led);

spin_lock(&mmc_host_lock);
idr_remove(&mmc_host_idr, host->index);
Expand Down

0 comments on commit 77f1fd6

Please sign in to comment.