Skip to content

Commit f27891a

Browse files
ADESTMgregkh
authored andcommitted
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: da0cb63 ("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>
1 parent 0cb6866 commit f27891a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/usb/typec/stusb160x.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -633,6 +633,7 @@ static const struct of_device_id stusb160x_of_match[] = {
633633
{ .compatible = "st,stusb1600", .data = &stusb1600_regmap_config},
634634
{},
635635
};
636+
MODULE_DEVICE_TABLE(of, stusb160x_of_match);
636637

637638
static int stusb160x_probe(struct i2c_client *client)
638639
{

0 commit comments

Comments
 (0)