Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751451AbaBCJaV (ORCPT ); Mon, 3 Feb 2014 04:30:21 -0500 Received: from mail-wg0-f45.google.com ([74.125.82.45]:59926 "EHLO mail-wg0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750750AbaBCJaT (ORCPT ); Mon, 3 Feb 2014 04:30:19 -0500 Date: Mon, 3 Feb 2014 09:30:13 +0000 From: Lee Jones To: Krzysztof Kozlowski Cc: MyungJoo Ham , Chanwoo Choi , Samuel Ortiz , Liam Girdwood , Mark Brown , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Marek Szyprowski , Kyungmin Park Subject: Re: [PATCH 05/18] mfd: max14577: Use of_match_ptr() in i2c_driver Message-ID: <20140203093013.GG13529@lee--X1> References: <1390911522-28209-1-git-send-email-k.kozlowski@samsung.com> <1390911522-28209-6-git-send-email-k.kozlowski@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1390911522-28209-6-git-send-email-k.kozlowski@samsung.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Use of_match_ptr() in assignment of i2c_driver.of_match_table. > > Signed-off-by: Krzysztof Kozlowski > Cc: Kyungmin Park > Cc: Marek Szyprowski > --- > drivers/mfd/max14577.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/mfd/max14577.c b/drivers/mfd/max14577.c > index 2ac2f2d7cea6..75b37082a3fe 100644 > --- a/drivers/mfd/max14577.c > +++ b/drivers/mfd/max14577.c > @@ -224,7 +224,7 @@ static struct i2c_driver max14577_i2c_driver = { > .name = "max14577", > .owner = THIS_MODULE, > .pm = &max14577_pm, > - .of_match_table = max14577_dt_match, > + .of_match_table = of_match_ptr(max14577_dt_match), Are you sure this is required? > }, > .probe = max14577_i2c_probe, > .remove = max14577_i2c_remove, -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/