test_firmware: move misc_device down
authorLuis R. Rodriguez <mcgrof@kernel.org>
Mon, 23 Jan 2017 16:11:05 +0000 (08:11 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Jan 2017 10:52:34 +0000 (11:52 +0100)
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>
lib/test_firmware.c

index a3e8ec3fb1c50c59192abd8402601960e78d4001..1cb9bf9eb41fc1b4e95f7d94c0fdd3ae58dd93d6 100644 (file)
@@ -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;