Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp545782img; Mon, 18 Mar 2019 08:50:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqxFwPDpJ7IsdXdUspVMkR22er4cYZXBOv1X1VBJPKQirHgBrQXwHTFa2vVFQ/uEiwYU/NYA X-Received: by 2002:a65:5c01:: with SMTP id u1mr18313910pgr.197.1552924206194; Mon, 18 Mar 2019 08:50:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552924206; cv=none; d=google.com; s=arc-20160816; b=YMyMzzB9NrahVPkoU0ZzpRnBS3GPbS9TyPzZHFOAO/zKaMGyyjpBkWIxd+T8GnYvtc h6eDo6g+MwkJ9S/mOVlCl5+XwnC934hGt/xdIUavhpdTel6CwwdSyD8sGhQsa0aMMymD If9hQcIr2ZlxUsmQdsgWWXer/grPx5Nf9GrGcp40oYNhoaE3ol1c1o5z8THV+XEs9H5W hDxhy86gb8SlN4YM0vcS0CJOZnbc0UjQ4fBKj6VFjf0s4tOeZ9LEamc63OX7Rzhj0Quc EtxehYeukOzcU7ZtvDwJFjTr2JiOWV/s+nij5+vPHbex9OuW+h/7aMyU6bm49lhBgo2y /z9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=wvLMmBGMGM7w5LzFu0t8cfN4eIPwdEN2er4+RPXwqiI=; b=gbhbd49/6JgGmK4B7xh9evv18x+3GChA/hA1b0/YSOUGAF7VbJPEswO5DroqOSb4s+ K/h3K/yisbC4B2lXb7ktt0sH42EBF8uc+c4cL+hIQNCXBQXBs/1frMh8JZUnbd1KRngt qnI71B+rpjq/DIVseFUWkZFwWeY+fOjjvKBpz/J9NF+Oupwq5/+oo6sPUW8ogPcVh/Qi dmA/b9m1EQoskIgRA124IbSaL0OaY/ODetb3tSPTKyO3s+5jcp3DMNrIgWf56gaj8j7r VFIM66D5hDUgAq0a/dqTqALIkkdAzrT/cjdfj9iN/LZXYgnVOD6B4S62YVy7JuJAqme5 EOFQ== ARC-Authentication-Results: i=1; mx.google.com; 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 m8si8943185pgp.322.2019.03.18.08.49.51; Mon, 18 Mar 2019 08:50:06 -0700 (PDT) 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; 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 S1727188AbfCRPtF (ORCPT + 99 others); Mon, 18 Mar 2019 11:49:05 -0400 Received: from sauhun.de ([88.99.104.3]:36836 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727390AbfCRPs7 (ORCPT ); Mon, 18 Mar 2019 11:48:59 -0400 Received: from localhost (p54B330C6.dip0.t-ipconnect.de [84.179.48.198]) by pokefinder.org (Postfix) with ESMTPSA id B43834A1348; Mon, 18 Mar 2019 16:48:57 +0100 (CET) From: Wolfram Sang To: linux-kernel@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, Lee Jones , Mark Brown , Support Opensource , Wolfram Sang Subject: [PATCH 3/6] mfd: da9063: remove platform_data support Date: Mon, 18 Mar 2019 16:47:55 +0100 Message-Id: <20190318154759.21978-4-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190318154759.21978-1-wsa+renesas@sang-engineering.com> References: <20190318154759.21978-1-wsa+renesas@sang-engineering.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There are no in-kernel users anymore, so remove this outdated interface. Signed-off-by: Wolfram Sang --- drivers/mfd/da9063-core.c | 20 ++------------------ drivers/mfd/da9063-i2c.c | 1 - drivers/mfd/da9063-irq.c | 1 - 3 files changed, 2 insertions(+), 20 deletions(-) diff --git a/drivers/mfd/da9063-core.c b/drivers/mfd/da9063-core.c index 6e4ce49b4405..65ca288b0c90 100644 --- a/drivers/mfd/da9063-core.c +++ b/drivers/mfd/da9063-core.c @@ -26,7 +26,6 @@ #include #include -#include #include #include @@ -165,7 +164,6 @@ static int da9063_clear_fault_log(struct da9063 *da9063) int da9063_device_init(struct da9063 *da9063, unsigned int irq) { - struct da9063_pdata *pdata = da9063->dev->platform_data; int model, variant_id, variant_code; int ret; @@ -173,24 +171,10 @@ int da9063_device_init(struct da9063 *da9063, unsigned int irq) if (ret < 0) dev_err(da9063->dev, "Cannot clear fault log\n"); - if (pdata) { - da9063->flags = pdata->flags; - da9063->irq_base = pdata->irq_base; - } else { - da9063->flags = 0; - da9063->irq_base = -1; - } + da9063->flags = 0; + da9063->irq_base = -1; da9063->chip_irq = irq; - if (pdata && pdata->init != NULL) { - ret = pdata->init(da9063); - if (ret != 0) { - dev_err(da9063->dev, - "Platform initialization failed.\n"); - return ret; - } - } - ret = regmap_read(da9063->regmap, DA9063_REG_CHIP_ID, &model); if (ret < 0) { dev_err(da9063->dev, "Cannot read chip model id.\n"); diff --git a/drivers/mfd/da9063-i2c.c b/drivers/mfd/da9063-i2c.c index 50a24b1921d0..5f707b100e69 100644 --- a/drivers/mfd/da9063-i2c.c +++ b/drivers/mfd/da9063-i2c.c @@ -22,7 +22,6 @@ #include #include -#include #include #include diff --git a/drivers/mfd/da9063-irq.c b/drivers/mfd/da9063-irq.c index ecc0c8ce6c58..ac02c31c5802 100644 --- a/drivers/mfd/da9063-irq.c +++ b/drivers/mfd/da9063-irq.c @@ -19,7 +19,6 @@ #include #include #include -#include #define DA9063_REG_EVENT_A_OFFSET 0 #define DA9063_REG_EVENT_B_OFFSET 1 -- 2.11.0