diff options
author | Andrew F. Davis <afd@ti.com> | 2018-04-21 19:55:29 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-05-14 10:33:48 -0400 |
commit | 5b7d127726de6eed4b900bc3bbb167837690818f (patch) | |
tree | 9e35ab71dd2a0bf4c4c82887cb210dce44d83894 | |
parent | 065c09563c872e52813a17218c52cd642be1dca6 (diff) |
rpmsg: Correct support for MODULE_DEVICE_TABLE()
Due to missing a missing entry in file2alias.c MODULE_DEVICE_TABLE() are
not generating the proper module aliases. Add the needed entry here.
Fixes: bcabbccabffe ("rpmsg: add virtio-based remote processor messaging bus")
Reported-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | scripts/mod/devicetable-offsets.c | 3 | ||||
-rw-r--r-- | scripts/mod/file2alias.c | 11 |
2 files changed, 14 insertions, 0 deletions
diff --git a/scripts/mod/devicetable-offsets.c b/scripts/mod/devicetable-offsets.c index 9fad6afe4c41..6667f7b491d6 100644 --- a/scripts/mod/devicetable-offsets.c +++ b/scripts/mod/devicetable-offsets.c | |||
@@ -139,6 +139,9 @@ int main(void) | |||
139 | DEVID(hv_vmbus_device_id); | 139 | DEVID(hv_vmbus_device_id); |
140 | DEVID_FIELD(hv_vmbus_device_id, guid); | 140 | DEVID_FIELD(hv_vmbus_device_id, guid); |
141 | 141 | ||
142 | DEVID(rpmsg_device_id); | ||
143 | DEVID_FIELD(rpmsg_device_id, name); | ||
144 | |||
142 | DEVID(i2c_device_id); | 145 | DEVID(i2c_device_id); |
143 | DEVID_FIELD(i2c_device_id, name); | 146 | DEVID_FIELD(i2c_device_id, name); |
144 | 147 | ||
diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c index b9beeaa4695b..52fd54a8fe39 100644 --- a/scripts/mod/file2alias.c +++ b/scripts/mod/file2alias.c | |||
@@ -944,6 +944,17 @@ static int do_vmbus_entry(const char *filename, void *symval, | |||
944 | } | 944 | } |
945 | ADD_TO_DEVTABLE("vmbus", hv_vmbus_device_id, do_vmbus_entry); | 945 | ADD_TO_DEVTABLE("vmbus", hv_vmbus_device_id, do_vmbus_entry); |
946 | 946 | ||
947 | /* Looks like: rpmsg:S */ | ||
948 | static int do_rpmsg_entry(const char *filename, void *symval, | ||
949 | char *alias) | ||
950 | { | ||
951 | DEF_FIELD_ADDR(symval, rpmsg_device_id, name); | ||
952 | sprintf(alias, RPMSG_DEVICE_MODALIAS_FMT, *name); | ||
953 | |||
954 | return 1; | ||
955 | } | ||
956 | ADD_TO_DEVTABLE("rpmsg", rpmsg_device_id, do_rpmsg_entry); | ||
957 | |||
947 | /* Looks like: i2c:S */ | 958 | /* Looks like: i2c:S */ |
948 | static int do_i2c_entry(const char *filename, void *symval, | 959 | static int do_i2c_entry(const char *filename, void *symval, |
949 | char *alias) | 960 | char *alias) |