Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3552498imu; Mon, 17 Dec 2018 23:45:10 -0800 (PST) X-Google-Smtp-Source: AFSGD/UjT7pel5RFoJUg29v2xotSAOPLQZkuYJuknvGpPXgxShGs76m3KNbHsr4y84zSnelr3nBM X-Received: by 2002:a63:2946:: with SMTP id p67mr15083686pgp.317.1545119110602; Mon, 17 Dec 2018 23:45:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545119110; cv=none; d=google.com; s=arc-20160816; b=XzQnhA2XSRlUmmAgA+IBZ4Y3wxiT5RzXMS4OqTqLziLDUUubLc//U8MiJFlmBGjXhr paCbGuHnnLwbd0fT2j18O942m/eKnJItSRYtt0xMoRHuvWIJogRJmbEfFjl/I4zMJCOO iJ2C3sbExPBZ/dQRAfp692UH0krVLKQoCex7BIz4jwcvrcF2AskFDrVfRukz42j17LDc fm0CnszOJuRIckSeJOgRQSI+Qs2rFEA3K+t9y6IwLtQZSiyuTo8CtxQqYUw9CYCEF3YA TMVGA+XGfD/0RDeNTiyGyK+WrnDcXBGYWTmB2epsIGvsxNbQbYGsNpsJIKsXUk6mm3cu KuQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=VuAAlDylbLnGcWMonBpQo4DzNbXPxhv6nrkR6unBpYE=; b=W683H6o1SmtfY9mT6QxVbC1G1RTnGFsDz0OAOMwIo5g42paXj3e96y+KioxovHi6zy WvD76PBx3Z7qoMcvBhy/nbZaaUQ8hJcnkAyVdRNwDxUlRd+UvkjGHp1hG1gc8M7ipw3/ wl3FiJ7/DRyzqQDyFNyBMCMbafOz0QguKMBb3wjHtYd8wlLfVdJHYAgdZZJgttvxNMwo /esI1lCeqs3DZcUkp1Qu5/XnwMayT8TH+mC7J0yCEt8OdM8iHHn1wzTPpV7hg0xlbcyC mG/7vczIlm2iAEsfsGelz9AjgDq8xrOXN5FKDHxH9dgEt2zA6wDRKo16nLkC+LKOUMwP ikwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@analog.onmicrosoft.com header.s=selector1-analog-com header.b=raubEcb3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t23si10539096pgi.181.2018.12.17.23.44.54; Mon, 17 Dec 2018 23:45:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@analog.onmicrosoft.com header.s=selector1-analog-com header.b=raubEcb3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726438AbeLRHn5 (ORCPT + 99 others); Tue, 18 Dec 2018 02:43:57 -0500 Received: from mail-eopbgr680063.outbound.protection.outlook.com ([40.107.68.63]:54036 "EHLO NAM04-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726324AbeLRHn5 (ORCPT ); Tue, 18 Dec 2018 02:43:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=analog.onmicrosoft.com; s=selector1-analog-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VuAAlDylbLnGcWMonBpQo4DzNbXPxhv6nrkR6unBpYE=; b=raubEcb3PowvEFRTfN4uzeaM3QZXB+M2BuND+9IUvcfc4mioqexieztyfv+urHMKVG1eG+gtzbQZD8xYv1/ZOatP4Lr5+LpkVu5C+SjC8tffdIKyAiCG9wrFlgTV6ZNtDufG74BRyCd5V596B5YOea5pQTcmv1UWClcp+Nt6Acw= Received: from BYAPR03MB3573.namprd03.prod.outlook.com (52.135.213.26) by BYAPR03MB3752.namprd03.prod.outlook.com (20.176.254.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1425.20; Tue, 18 Dec 2018 07:43:14 +0000 Received: from BYAPR03MB3573.namprd03.prod.outlook.com ([fe80::d947:97fb:64a3:25be]) by BYAPR03MB3573.namprd03.prod.outlook.com ([fe80::d947:97fb:64a3:25be%3]) with mapi id 15.20.1425.023; Tue, 18 Dec 2018 07:43:14 +0000 From: "Hennerich, Michael" To: Paul Gortmaker , Lee Jones CC: "linux-kernel@vger.kernel.org" Subject: RE: [PATCH 02/18] mfd: adp5520: Make it explicitly non-modular Thread-Topic: [PATCH 02/18] mfd: adp5520: Make it explicitly non-modular Thread-Index: AQHUlkfQ5yy/j2MZdUW8lYUwz7mz46WEHeAw Date: Tue, 18 Dec 2018 07:43:14 +0000 Message-ID: References: <1545078688-21217-1-git-send-email-paul.gortmaker@windriver.com> <1545078688-21217-3-git-send-email-paul.gortmaker@windriver.com> In-Reply-To: <1545078688-21217-3-git-send-email-paul.gortmaker@windriver.com> Accept-Language: de-DE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Michael.Hennerich@analog.com; x-originating-ip: [137.71.226.54] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;BYAPR03MB3752;6:zT2bkc1Q1xFu4KVoICvafpPhsGi+ZHjoeLuo7CSfiLOEikFE9wYq6+jdyc0v9VsqCcOa6+WXHkVFtfmAOyQACQxcc9fYCkRobFlqEp33N35cs7+T01IR0FZZfYJ4Ez3ixX+a3/3sLcsdh5hHeVunwrLQRNVjFR7Qvj6UQQgSKJC/xzyyejxnxXUCC/w9YN8b5ZV3q2+tTlbcfYP6CMh5fSua/IDsqroDv+2KYHUhlhS2xxLcrzBysmMMWgLb7tYe31devyzyc6tP3t2E5bWUnmUf9U0HQQiCLnNw6Yrld00Jh+SUcDxmahYm9y2hljhDhXHlYMNHi62FmHBj1P0ijwHT+K/4pCB+0uhH0P3pGrmZccu6+Ml7AUcicnD50YpMFKnrOT094mSj0NanfgTkGqmhRXfjJWdVW6UIce3jbQ9htrZvFvtboL9SWQUimbSYSb4nBqKUkQkG7Kd3NHxXXQ==;5:5ZZ1cJfbyC/GgdO4sjb0CoZWPWIMJmqT/fTq+utv1xQ9BYokMILbxyYvhw7gxEUovQN5ysPhlAhvNG9Z99UQLiwpH++aoryAWaQttKER46zyx1QHDFfaIFl9tvU3aJv1riSJ5auwKqe4AMYZu379lytXiBpxxiBsr4dO2ANt8bs=;7:UrYuQLmVPg9Uw7C9TfrGAoPzjIxRNuEDZusX3dsFmeaukbXe8uTuvd1gYFzS4MjuK7pb9RPDIDZZi4Z+traWAtJqiyfS80i10BEuI5SKzcwCfir3Bs5YHb1Fr9TJKjyAqdm9vc4TRzqC48kIO40kGg== x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: 4aa3dbf2-2863-465a-0503-08d664bc77a0 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:BYAPR03MB3752; x-ms-traffictypediagnostic: BYAPR03MB3752: x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(3230021)(999002)(6040522)(2401047)(5005006)(8121501046)(3002001)(10201501046)(93006095)(93001095)(3231475)(944501520)(52105112)(6055026)(148016)(149066)(150057)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123562045)(20161123564045)(201708071742011)(7699051)(76991095);SRVR:BYAPR03MB3752;BCL:0;PCL:0;RULEID:;SRVR:BYAPR03MB3752; x-forefront-prvs: 08902E536D x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(39860400002)(376002)(346002)(136003)(366004)(13464003)(199004)(189003)(52314003)(66066001)(76176011)(7696005)(53546011)(6506007)(102836004)(2906002)(71190400001)(71200400001)(316002)(33656002)(256004)(14444005)(105586002)(106356001)(478600001)(3846002)(6116002)(186003)(4326008)(68736007)(26005)(99286004)(53936002)(14454004)(11346002)(446003)(9686003)(25786009)(8936002)(55016002)(486006)(476003)(86362001)(6246003)(72206003)(7736002)(81156014)(81166006)(110136005)(305945005)(6436002)(8676002)(74316002)(229853002)(5660300001)(97736004);DIR:OUT;SFP:1101;SCL:1;SRVR:BYAPR03MB3752;H:BYAPR03MB3573.namprd03.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: analog.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: F8rBOrNi37SShLRT/ut26K4twWdEpo0DpFHfDL5pcbNFOJUtaH91YJRO9LElIJ2aJO4HJKDa1F+9RdAI1mQR8ke8E+iNRQCBJJ6jSMw4NtkqTFnrV+oV8J1FKsM7oZRO4MCCrMEwmw5K1Nmembt+5bbxKTzRy4FuR1uWQlQ6kiKQmOpGB19hwrfh6Xxeox6H+FwMDdarhuJLmIwN/U+LcAq3wy7nHgmQh6/ycYsI+UlJu7zSB2EOxKEcZtxiwnGIlEBBHGbbfi2NTr8GMlAKKZrTorutodClDYmj0as+lXi+n3BYCIKigg1OwadHZh2h spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: analog.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4aa3dbf2-2863-465a-0503-08d664bc77a0 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Dec 2018 07:43:14.1702 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: eaa689b4-8f87-40e0-9c6f-7228de4d754a X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR03MB3752 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Paul Gortmaker [mailto:paul.gortmaker@windriver.com] > Sent: Montag, 17. Dezember 2018 21:31 > To: Lee Jones > Cc: linux-kernel@vger.kernel.org; Paul Gortmaker ; Hennerich, Michael > > Subject: [PATCH 02/18] mfd: adp5520: Make it explicitly non-modular >=20 > The Makefile/Kconfig currently controlling compilation of this code is: >=20 > drivers/mfd/Makefile:obj-$(CONFIG_PMIC_ADP5520) +=3D adp5520.o > drivers/mfd/Kconfig:config PMIC_ADP5520 > drivers/mfd/Kconfig: bool "Analog Devices ADP5520/01 MFD PMIC Core Sup= port" >=20 > ...meaning that it currently is not being built as a module by anyone. >=20 > Lets remove the modular code that is essentially orphaned, so that > when reading the driver there is no doubt it is builtin-only. >=20 > We explicitly disallow a driver unbind, since that doesn't have a > sensible use case anyway, and it allows us to drop the ".remove" > code for non-modular drivers. >=20 > Since module_i2c_driver() uses the same init level priority as > builtin_i2c_driver() the init ordering remains unchanged with > this commit. >=20 > Also note that MODULE_DEVICE_TABLE is a no-op for non-modular code. >=20 > We also delete the MODULE_LICENSE tag etc. since all that information > was (or is now) contained at the top of the file in the comments. >=20 > Cc: Michael Hennerich > Cc: Lee Jones > Signed-off-by: Paul Gortmaker > Acked-by: Linus Walleij Acked-by: Michael Hennerich > --- > drivers/mfd/adp5520.c | 30 +++++++----------------------- > 1 file changed, 7 insertions(+), 23 deletions(-) >=20 > diff --git a/drivers/mfd/adp5520.c b/drivers/mfd/adp5520.c > index be0497b96720..2cdd39cb8a18 100644 > --- a/drivers/mfd/adp5520.c > +++ b/drivers/mfd/adp5520.c > @@ -7,6 +7,8 @@ > * > * Copyright 2009 Analog Devices Inc. > * > + * Author: Michael Hennerich > + * > * Derived from da903x: > * Copyright (C) 2008 Compulab, Ltd. > * Mike Rapoport > @@ -18,7 +20,7 @@ > */ >=20 > #include > -#include > +#include > #include > #include > #include > @@ -304,18 +306,6 @@ static int adp5520_probe(struct i2c_client *client, > return ret; > } >=20 > -static int adp5520_remove(struct i2c_client *client) > -{ > - struct adp5520_chip *chip =3D dev_get_drvdata(&client->dev); > - > - if (chip->irq) > - free_irq(chip->irq, chip); > - > - adp5520_remove_subdevs(chip); > - adp5520_write(chip->dev, ADP5520_MODE_STATUS, 0); > - return 0; > -} > - > #ifdef CONFIG_PM_SLEEP > static int adp5520_suspend(struct device *dev) > { > @@ -346,20 +336,14 @@ static const struct i2c_device_id adp5520_id[] =3D = { > { "pmic-adp5501", ID_ADP5501 }, > { } > }; > -MODULE_DEVICE_TABLE(i2c, adp5520_id); >=20 > static struct i2c_driver adp5520_driver =3D { > .driver =3D { > - .name =3D "adp5520", > - .pm =3D &adp5520_pm, > + .name =3D "adp5520", > + .pm =3D &adp5520_pm, > + .suppress_bind_attrs =3D true, > }, > .probe =3D adp5520_probe, > - .remove =3D adp5520_remove, > .id_table =3D adp5520_id, > }; > - > -module_i2c_driver(adp5520_driver); > - > -MODULE_AUTHOR("Michael Hennerich "); > -MODULE_DESCRIPTION("ADP5520(01) PMIC-MFD Driver"); > -MODULE_LICENSE("GPL"); > +builtin_i2c_driver(adp5520_driver); > -- > 2.7.4