mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-30 19:13:03 -04:00
pinctrl: sx150x: add missing MODULE_DEVICE_TABLE()
The driver has a match table for the i2c bus wired into its driver structure, but the table is not exported with MODULE_DEVICE_TABLE(). Add the missing MODULE_DEVICE_TABLE() entry so module alias information is generated for automatic module loading. This is a source-level fix. It does not claim dynamic hardware reproduction; the evidence is the driver-owned match table, its use by the driver registration structure, and the missing module alias publication. Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn> Signed-off-by: Linus Walleij <linusw@kernel.org>
This commit is contained in:
committed by
Linus Walleij
parent
94cb9e8f27
commit
5fe4b12c08
@@ -850,6 +850,7 @@ static const struct i2c_device_id sx150x_id[] = {
|
||||
{ .name = "sx1509q", .driver_data = (kernel_ulong_t)&sx1509q_device_data },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, sx150x_id);
|
||||
|
||||
static const struct of_device_id sx150x_of_match[] = {
|
||||
{ .compatible = "semtech,sx1501q", .data = &sx1501q_device_data },
|
||||
|
||||
Reference in New Issue
Block a user