From: Pierre Ossman Date: Fri, 12 Oct 2007 20:48:46 +0000 (+0200) Subject: mmc: use correct unregister function for led trigger X-Git-Tag: v2.6.24-rc1~1401^2 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77f1fd6ecd04556cbac1ca72e7a284ae313ea538;p=linux-2.6 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 --- diff --git a/drivers/mmc/core/host.c b/drivers/mmc/core/host.c index 64fbc9759a..c65d203a84 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) 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);