summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAmelie Delaunay <amelie.delaunay@st.com>2020-10-28 16:17:03 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-10-29 08:26:08 +0100
commitf27891abb7930d7a92bee2a47648a4a8708652d3 (patch)
treeae0d78bb18e8ad598abf00e3a17f8cd25c038d34 /drivers
parent0cb686692fd200db12dcfb8231e793c1c98aec41 (diff)
usb: typec: add missing MODULE_DEVICE_TABLE() to stusb160x
When stusb160x driver is built as a module, no modalias information is available, and it prevents the module to be loaded by udev. Add MODULE_DEVICE_TABLE() to fix this issue. Fixes: da0cb6310094 ("usb: typec: add support for STUSB160x Type-C controller family") Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com> Link: https://lore.kernel.org/r/20201028151703.31195-1-amelie.delaunay@st.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/typec/stusb160x.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/typec/stusb160x.c b/drivers/usb/typec/stusb160x.c
index da7f1957bcb3..42076697e26c 100644
--- a/drivers/usb/typec/stusb160x.c
+++ b/drivers/usb/typec/stusb160x.c
@@ -633,6 +633,7 @@ static const struct of_device_id stusb160x_of_match[] = {
{ .compatible = "st,stusb1600", .data = &stusb1600_regmap_config},
{},
};
+MODULE_DEVICE_TABLE(of, stusb160x_of_match);
static int stusb160x_probe(struct i2c_client *client)
{