mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-13 01:08:50 +00:00
Input: tca8418 - fix loading this driver as a module from a device tree
Loading the tca8418 driver as a module on a device tree based system needs a MODULE_ALIAS because the driver name does not match the automatic name generation rules of a 'compatible' entry on i2c bus. Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
parent
ef3714fdbc
commit
c16134976f
@ -392,6 +392,13 @@ static const struct of_device_id tca8418_dt_ids[] = {
|
|||||||
{ }
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, tca8418_dt_ids);
|
MODULE_DEVICE_TABLE(of, tca8418_dt_ids);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* The device tree based i2c loader looks for
|
||||||
|
* "i2c:" + second_component_of(property("compatible"))
|
||||||
|
* and therefore we need an alias to be found.
|
||||||
|
*/
|
||||||
|
MODULE_ALIAS("i2c:tca8418");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static struct i2c_driver tca8418_keypad_driver = {
|
static struct i2c_driver tca8418_keypad_driver = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user