]> Pileus Git - ~andy/linux/blobdiff - drivers/platform/x86/amilo-rfkill.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
[~andy/linux] / drivers / platform / x86 / amilo-rfkill.c
index 19170bb7700b0f9307b1472868f3ca7799ad03b1..a514bf66fdd7e2a6532fd5be9a97f6aa2a417fb6 100644 (file)
@@ -97,9 +97,12 @@ static struct rfkill *amilo_rfkill_dev;
 
 static int __devinit amilo_rfkill_probe(struct platform_device *device)
 {
+       int rc;
        const struct dmi_system_id *system_id =
                dmi_first_match(amilo_rfkill_id_table);
-       int rc;
+
+       if (!system_id)
+               return -ENXIO;
 
        amilo_rfkill_dev = rfkill_alloc(KBUILD_MODNAME, &device->dev,
                                        RFKILL_TYPE_WLAN,