rfkill: Add constant for RFKILL_TYPE_FM radio devices
[pandora-kernel.git] / net / rfkill / core.c
index dbeaf29..09f4e16 100644 (file)
@@ -27,6 +27,7 @@
 #include <linux/list.h>
 #include <linux/mutex.h>
 #include <linux/rfkill.h>
+#include <linux/sched.h>
 #include <linux/spinlock.h>
 #include <linux/miscdevice.h>
 #include <linux/wait.h>
@@ -591,11 +592,13 @@ static const char *rfkill_get_type_str(enum rfkill_type type)
                return "wwan";
        case RFKILL_TYPE_GPS:
                return "gps";
+       case RFKILL_TYPE_FM:
+               return "fm";
        default:
                BUG();
        }
 
-       BUILD_BUG_ON(NUM_RFKILL_TYPES != RFKILL_TYPE_GPS + 1);
+       BUILD_BUG_ON(NUM_RFKILL_TYPES != RFKILL_TYPE_FM + 1);
 }
 
 static ssize_t rfkill_type_show(struct device *dev,