diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2020-03-03 13:50:46 +0100 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2020-03-10 12:30:59 +0100 |
commit | bcf3588d8ed3517e6ffaf083f034812aee9dc8e2 (patch) | |
tree | 03c58ae5d94876872d89891017e0637bb4603c07 /drivers/macintosh/windfarm_fcu_controls.c | |
parent | 9be8bc4dd6177cf992b93b0bd014c4f611283896 (diff) | |
download | linux-stable-bcf3588d8ed3517e6ffaf083f034812aee9dc8e2.tar.gz linux-stable-bcf3588d8ed3517e6ffaf083f034812aee9dc8e2.tar.bz2 linux-stable-bcf3588d8ed3517e6ffaf083f034812aee9dc8e2.zip |
macintosh: windfarm: fix MODINFO regression
Commit af503716ac14 made sure OF devices get an OF style modalias with
I2C events. It assumed all in-tree users were converted, yet it missed
some Macintosh drivers.
Add an OF module device table for all windfarm drivers to make them
automatically load again.
Fixes: af503716ac14 ("i2c: core: report OF style module alias for devices registered via OF")
Link: https://bugzilla.kernel.org/show_bug.cgi?id=199471
Reported-by: Erhard Furtner <erhard_f@mailbox.org>
Tested-by: Erhard Furtner <erhard_f@mailbox.org>
Acked-by: Michael Ellerman <mpe@ellerman.id.au> (powerpc)
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Cc: stable@kernel.org # v4.17+
Diffstat (limited to 'drivers/macintosh/windfarm_fcu_controls.c')
-rw-r--r-- | drivers/macintosh/windfarm_fcu_controls.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/macintosh/windfarm_fcu_controls.c b/drivers/macintosh/windfarm_fcu_controls.c index 67daeec94b44..2470e5a725c8 100644 --- a/drivers/macintosh/windfarm_fcu_controls.c +++ b/drivers/macintosh/windfarm_fcu_controls.c @@ -580,9 +580,16 @@ static const struct i2c_device_id wf_fcu_id[] = { }; MODULE_DEVICE_TABLE(i2c, wf_fcu_id); +static const struct of_device_id wf_fcu_of_id[] = { + { .compatible = "fcu", }, + { } +}; +MODULE_DEVICE_TABLE(of, wf_fcu_of_id); + static struct i2c_driver wf_fcu_driver = { .driver = { .name = "wf_fcu", + .of_match_table = wf_fcu_of_id, }, .probe = wf_fcu_probe, .remove = wf_fcu_remove, |