dell-laptop: Fix errors on failure and exit paths
authorMatthew Garrett <mjg@redhat.com>
Mon, 1 Mar 2010 14:46:43 +0000 (09:46 -0500)
committerMatthew Garrett <mjg@redhat.com>
Mon, 1 Mar 2010 14:46:43 +0000 (09:46 -0500)
commit92e00e47b61f558009ff81be42b412a76fd89d84
treef291c7eafef38b929a2d0240b94f60f64993fb9e
parent94d8f785dd1f021c1971df73e6437f000c0d9449
dell-laptop: Fix errors on failure and exit paths

Make sure that work is cancelled after removing the i8042 filter, and
unregister the platform device rather than deleting it.

Signed-off-by: Matthew Garrett <mjg@redhat.com>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/platform/x86/dell-laptop.c