diff options
author | Luis R. Rodriguez <mcgrof@kernel.org> | 2017-01-23 11:11:05 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-01-25 05:52:34 -0500 |
commit | 67fd553ce0e55a468ee24f61ddf6b40ba610bbb5 (patch) | |
tree | 9ab1eca13a399ad6663746ab6065304f7a57eb3d /lib | |
parent | fd0c478c0dd800449e2d70025ef742679a16a8de (diff) |
test_firmware: move misc_device down
This will make further changes easier to review.
Signed-off-by: Luis R. Rodriguez <mcgrof@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib')
-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; |