diff options
-rw-r--r-- | drivers/platform/x86/amilo-rfkill.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/platform/x86/amilo-rfkill.c b/drivers/platform/x86/amilo-rfkill.c index 19170bb7700b..a514bf66fdd7 100644 --- a/drivers/platform/x86/amilo-rfkill.c +++ b/drivers/platform/x86/amilo-rfkill.c | |||
@@ -97,9 +97,12 @@ static struct rfkill *amilo_rfkill_dev; | |||
97 | 97 | ||
98 | static int __devinit amilo_rfkill_probe(struct platform_device *device) | 98 | static int __devinit amilo_rfkill_probe(struct platform_device *device) |
99 | { | 99 | { |
100 | int rc; | ||
100 | const struct dmi_system_id *system_id = | 101 | const struct dmi_system_id *system_id = |
101 | dmi_first_match(amilo_rfkill_id_table); | 102 | dmi_first_match(amilo_rfkill_id_table); |
102 | int rc; | 103 | |
104 | if (!system_id) | ||
105 | return -ENXIO; | ||
103 | 106 | ||
104 | amilo_rfkill_dev = rfkill_alloc(KBUILD_MODNAME, &device->dev, | 107 | amilo_rfkill_dev = rfkill_alloc(KBUILD_MODNAME, &device->dev, |
105 | RFKILL_TYPE_WLAN, | 108 | RFKILL_TYPE_WLAN, |