From mboxrd@z Thu Jan 1 00:00:00 1970 From: sre@kernel.org (Sebastian Reichel) Date: Wed, 19 Oct 2016 04:51:55 +0200 Subject: [PATCH] mfd: axp20x-i2c: Add i2c-ids to fix module auto-loading In-Reply-To: <20161005155112.13774-2-hdegoede@redhat.com> References: <20161005155112.13774-1-hdegoede@redhat.com> <20161005155112.13774-2-hdegoede@redhat.com> Message-ID: <20161019025154.rmw56aoh27wbrene@earth> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Hi, On Wed, Oct 05, 2016 at 05:51:12PM +0200, Hans de Goede wrote: > The i2c subsys does not load modules by compatible, only by > i2c-id, with e.g. a modalias of: "i2c:axp209". > > Populate the axp20x_i2c_id[] table with supported ids, so that > module auto-loading will work. > > Reported-by: Dennis Gilmore > Signed-off-by: Hans de Goede > --- > drivers/mfd/axp20x-i2c.c | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) > > diff --git a/drivers/mfd/axp20x-i2c.c b/drivers/mfd/axp20x-i2c.c > index b1b8658..d35a5fe 100644 > --- a/drivers/mfd/axp20x-i2c.c > +++ b/drivers/mfd/axp20x-i2c.c > @@ -69,10 +69,11 @@ static const struct of_device_id axp20x_i2c_of_match[] = { > }; > MODULE_DEVICE_TABLE(of, axp20x_i2c_of_match); > > -/* > - * This is useless for OF-enabled devices, but it is needed by I2C subsystem > - */ > static const struct i2c_device_id axp20x_i2c_id[] = { > + { "axp152", 0 }, > + { "axp202", 0 }, > + { "axp209", 0 }, > + { "axp221", 0 }, > { }, > }; > MODULE_DEVICE_TABLE(i2c, axp20x_i2c_id); Thanks, queued. -- Sebastian -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 801 bytes Desc: not available URL: