Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752958AbcKYHta (ORCPT ); Fri, 25 Nov 2016 02:49:30 -0500 Received: from relay1.mentorg.com ([192.94.38.131]:45522 "EHLO relay1.mentorg.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751858AbcKYHtW (ORCPT ); Fri, 25 Nov 2016 02:49:22 -0500 From: Nicolae Rosia To: Mark Brown CC: Liam Girdwood , Tony Lindgren , , , Nicolae Rosia Subject: [PATCH] regulator: twl: drop of_match_ptr Date: Fri, 25 Nov 2016 09:49:00 +0200 Message-ID: <20161125074900.7172-1-Nicolae_Rosia@mentor.com> X-Mailer: git-send-email 2.9.3 MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 816 Lines: 27 We can safely drop of_match_ptr since the driver depends on CONFIG_OF symbol Signed-off-by: Nicolae Rosia --- Depends on "regulator: twl6030: add dependency on OF". After sending that one I realised that twl-regulator can also have that change. You can squash these two if you like. drivers/regulator/twl-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/twl-regulator.c b/drivers/regulator/twl-regulator.c index 6c9ec84..48c060f 100644 --- a/drivers/regulator/twl-regulator.c +++ b/drivers/regulator/twl-regulator.c @@ -654,7 +654,7 @@ static struct platform_driver twlreg_driver = { */ .driver = { .name = "twl4030_reg", - .of_match_table = of_match_ptr(twl_of_match), + .of_match_table = twl_of_match, }, }; -- 2.9.3