diff options
author | Luis R. Rodriguez <mcgrof@kernel.org> | 2017-01-23 08:11:05 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-01-25 11:52:34 +0100 |
commit | 67fd553ce0e55a468ee24f61ddf6b40ba610bbb5 (patch) | |
tree | 9ab1eca13a399ad6663746ab6065304f7a57eb3d /lib | |
parent | fd0c478c0dd800449e2d70025ef742679a16a8de (diff) | |
download | linux-rpi-67fd553ce0e55a468ee24f61ddf6b40ba610bbb5.tar.gz linux-rpi-67fd553ce0e55a468ee24f61ddf6b40ba610bbb5.tar.bz2 linux-rpi-67fd553ce0e55a468ee24f61ddf6b40ba610bbb5.zip |
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 = { .read = test_fw_misc_read, }; -static struct miscdevice test_fw_misc_device = { - .minor = MISC_DYNAMIC_MINOR, - .name = "test_firmware", - .fops = &test_fw_fops, -}; - static ssize_t trigger_request_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) @@ -132,6 +126,12 @@ out: } static DEVICE_ATTR_WO(trigger_async_request); +static struct miscdevice test_fw_misc_device = { + .minor = MISC_DYNAMIC_MINOR, + .name = "test_firmware", + .fops = &test_fw_fops, +}; + static int __init test_firmware_init(void) { int rc; |