WMI: return error if wmi_create_device() fails
authorDan Carpenter <error27@gmail.com>
Mon, 6 Dec 2010 21:44:23 +0000 (16:44 -0500)
committerMatthew Garrett <mjg@redhat.com>
Fri, 7 Jan 2011 22:03:45 +0000 (17:03 -0500)
commite1e0dacba5af2b0cd8f9043d0b937296c90bc990
tree70a4dea5b47cf51693ea16f3a981e3444273c780
parentd358cb55a4cc83c37fbaebc0e4401a573777c6ac
WMI: return error if wmi_create_device() fails

The break resets the retval to 0 but we want to return an error code.
This was introduced in c64eefd48c4 "WMI: embed struct device directly
into wmi_block"

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Acked-by: Dmitry Torokhov <dtor@mail.ru>
drivers/platform/x86/wmi.c