From mboxrd@z Thu Jan 1 00:00:00 1970 From: maxime.ripard@free-electrons.com (Maxime Ripard) Date: Wed, 7 Jan 2015 09:49:12 +0100 Subject: [PATCH v1] ARM:sunxi:sid: Make use of the of_match_ptr In-Reply-To: <1420616468-3782-1-git-send-email-oliver+list@schinagl.nl> References: <1420616468-3782-1-git-send-email-oliver+list@schinagl.nl> Message-ID: <20150107084912.GD7853@lukather> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Hi, On Wed, Jan 07, 2015 at 08:41:08AM +0100, Olliver Schinagl wrote: > From: Olliver Schinagl > > I probably have forgotten to use this macro for the of_match pointer, so > this patch adds the of_match_ptr macro. > > Signed-off-by: Olliver Schinagl > --- > drivers/misc/eeprom/sunxi_sid.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/misc/eeprom/sunxi_sid.c b/drivers/misc/eeprom/sunxi_sid.c > index 8385177..5a330d9 100644 > --- a/drivers/misc/eeprom/sunxi_sid.c > +++ b/drivers/misc/eeprom/sunxi_sid.c > @@ -25,6 +25,7 @@ > #include > #include > #include > +#include > #include > #include > #include > @@ -146,7 +147,7 @@ static struct platform_driver sunxi_sid_driver = { > .remove = sunxi_sid_remove, > .driver = { > .name = DRV_NAME, > - .of_match_table = sunxi_sid_of_match, > + .of_match_table = of_match_ptr(sunxi_sid_of_match), Why do you need this ? The sunxi_sid_of_match array is always defined. Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: