From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750968AbdH3FrE (ORCPT ); Wed, 30 Aug 2017 01:47:04 -0400 Received: from lelnx194.ext.ti.com ([198.47.27.80]:9151 "EHLO lelnx194.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750749AbdH3FrC (ORCPT ); Wed, 30 Aug 2017 01:47:02 -0400 Subject: Re: [PATCH v2] mfd: tps65217: Introduce dependency on CONFIG_OF To: Javier Martinez Canillas , Enric Balletbo Serra References: <1496918764-23438-1-git-send-email-j-keerthy@ti.com> CC: Lee Jones , Tony Lindgren , Mark Brown , Jingoo Han , Bartlomiej Zolnierkiewicz , Tero Kristo , linux-kernel , "linux-omap@vger.kernel.org" From: Keerthy Message-ID: <410b1bd1-39b2-35f4-68c7-3ac63fc265c2@ti.com> Date: Wed, 30 Aug 2017 11:16:51 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thursday 08 June 2017 07:41 PM, Javier Martinez Canillas wrote: > On Thu, Jun 8, 2017 at 3:32 PM, Enric Balletbo Serra > wrote: >> Hi Keerthy: >> >> 2017-06-08 12:46 GMT+02:00 Keerthy : >>> Currently the driver boots only via device tree hence add a >>> dependency on CONFIG_OF. This leaves with a bunch of unused code >>> so clean that up. >>> >>> Signed-off-by: Keerthy >> > > [snip] > >>> >>> config MFD_TPS65217 >>> tristate "TI TPS65217 Power Management / White LED chips" >>> - depends on I2C >>> + depends on I2C && OF >> >> I think you should append || COMPILE_TEST here. >> > > For me it should be a separate patch, it's nice to have COMPILE_TEST > but not related to this change IMHO. Resurrecting this patch. > >>> >>> -static const struct i2c_device_id tps65217_id_table[] = { >>> - {"tps65217", TPS65217}, >>> - { /* sentinel */ } >>> -}; >>> -MODULE_DEVICE_TABLE(i2c, tps65217_id_table); > > Unfortunately you can't get rid of this table (yet) since the I2C > subsystem always reports a MODALIAS of the form "i2c:tps65217" even > when the devices have been registered via OF. There are only a couple > of drivers more to clean-up and then I'll post a patch that fixes the > I2C core to report a proper OF modalias. But for now, removing will > mean that module autoload will be broken for this driver. I believe now all the dependent patches are in to get rid of the above table. > > Best regards, > Javier >