diff options
-rw-r--r-- | lib/test_firmware.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/test_firmware.c b/lib/test_firmware.c index a3e8ec3fb1c5..1cb9bf9eb41f 100644 --- a/lib/test_firmware.c +++ b/lib/test_firmware.c | |||
@@ -42,12 +42,6 @@ static const struct file_operations test_fw_fops = { | |||
42 | .read = test_fw_misc_read, | 42 | .read = test_fw_misc_read, |
43 | }; | 43 | }; |
44 | 44 | ||
45 | static struct miscdevice test_fw_misc_device = { | ||
46 | .minor = MISC_DYNAMIC_MINOR, | ||
47 | .name = "test_firmware", | ||
48 | .fops = &test_fw_fops, | ||
49 | }; | ||
50 | |||
51 | static ssize_t trigger_request_store(struct device *dev, | 45 | static ssize_t trigger_request_store(struct device *dev, |
52 | struct device_attribute *attr, | 46 | struct device_attribute *attr, |
53 | const char *buf, size_t count) | 47 | const char *buf, size_t count) |
@@ -132,6 +126,12 @@ out: | |||
132 | } | 126 | } |
133 | static DEVICE_ATTR_WO(trigger_async_request); | 127 | static DEVICE_ATTR_WO(trigger_async_request); |
134 | 128 | ||
129 | static struct miscdevice test_fw_misc_device = { | ||
130 | .minor = MISC_DYNAMIC_MINOR, | ||
131 | .name = "test_firmware", | ||
132 | .fops = &test_fw_fops, | ||
133 | }; | ||
134 | |||
135 | static int __init test_firmware_init(void) | 135 | static int __init test_firmware_init(void) |
136 | { | 136 | { |
137 | int rc; | 137 | int rc; |