summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 065c095)
raw | patch | inline | side by side (parent: 065c095)
author | Andrew F. Davis <afd@ti.com> | |
Sat, 21 Apr 2018 23:55:29 +0000 (18:55 -0500) | ||
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | |
Mon, 14 May 2018 14:33:48 +0000 (16:33 +0200) |
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>
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>
scripts/mod/devicetable-offsets.c | patch | blob | history | |
scripts/mod/file2alias.c | patch | blob | history |
index 9fad6afe4c4173194cbfcd1e6cb99950d41df7a5..6667f7b491d64187ee6a50e0567391d4e8f16659 100644 (file)
DEVID(hv_vmbus_device_id);
DEVID_FIELD(hv_vmbus_device_id, guid);
+ DEVID(rpmsg_device_id);
+ DEVID_FIELD(rpmsg_device_id, name);
+
DEVID(i2c_device_id);
DEVID_FIELD(i2c_device_id, name);
index b9beeaa4695b25ed55dd0f227a2e9ee5d70b946b..52fd54a8fe39b62efa54b2e7fb4e68720fb93007 100644 (file)
--- a/scripts/mod/file2alias.c
+++ b/scripts/mod/file2alias.c
}
ADD_TO_DEVTABLE("vmbus", hv_vmbus_device_id, do_vmbus_entry);
+/* Looks like: rpmsg:S */
+static int do_rpmsg_entry(const char *filename, void *symval,
+ char *alias)
+{
+ DEF_FIELD_ADDR(symval, rpmsg_device_id, name);
+ sprintf(alias, RPMSG_DEVICE_MODALIAS_FMT, *name);
+
+ return 1;
+}
+ADD_TO_DEVTABLE("rpmsg", rpmsg_device_id, do_rpmsg_entry);
+
/* Looks like: i2c:S */
static int do_i2c_entry(const char *filename, void *symval,
char *alias)