Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 77f1fd6e authored by Pierre Ossman's avatar Pierre Ossman
Browse files

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: default avatarPierre Ossman <drzeus@drzeus.cx>
parent 019a5f56
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -143,7 +143,7 @@ void mmc_remove_host(struct mmc_host *host)


	device_del(&host->class_dev);
	device_del(&host->class_dev);


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


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