Commit 67fd553c authored by Luis R. Rodriguez's avatar Luis R. Rodriguez Committed by Greg Kroah-Hartman

test_firmware: move misc_device down

This will make further changes easier to review.
Signed-off-by: default avatarLuis R. Rodriguez <mcgrof@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent fd0c478c
...@@ -42,12 +42,6 @@ static const struct file_operations test_fw_fops = { ...@@ -42,12 +42,6 @@ static const struct file_operations test_fw_fops = {
.read = test_fw_misc_read, .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, static ssize_t trigger_request_store(struct device *dev,
struct device_attribute *attr, struct device_attribute *attr,
const char *buf, size_t count) const char *buf, size_t count)
...@@ -132,6 +126,12 @@ static ssize_t trigger_async_request_store(struct device *dev, ...@@ -132,6 +126,12 @@ static ssize_t trigger_async_request_store(struct device *dev,
} }
static DEVICE_ATTR_WO(trigger_async_request); 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) static int __init test_firmware_init(void)
{ {
int rc; int rc;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment