Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp3522935pxb; Tue, 20 Apr 2021 10:05:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwvP09BtilZ5Gn7VU1D41/EcaYwd6fkiUQRv1YTUnyUdxY9POqsyUdPOqbEKvp+rASG/Gt7 X-Received: by 2002:a17:906:6bcb:: with SMTP id t11mr27742640ejs.395.1618938307943; Tue, 20 Apr 2021 10:05:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618938307; cv=none; d=google.com; s=arc-20160816; b=OwDsOR8IOsokvNVYq8WHfz/z9s50B383JP85FQSqXF5UF0Kl2S06hBKFSnPhpcisGR W5MUBAs9iSXMEtIetWQOX/V4arps+38+tosD+QGLdhlRotGP/c37bMEJOypyrf224NIz myX5k9sAooFmOLPd5m5YKGLWNF5Jc3oy3wZBcO+rR/c6WsgMgESmhazzwYs+rUqk/gh8 ryEIaanAIcUmsEyDV+zbD9EkNKVuCIt3lP1bcb/U/8EsVky0QlNPvMCMUtU28zzq4GKc oubfTtBz9ECrEMzOkojL54Ifei3Tqrd5jjH/nhdVJWEzqGQs1CIFJeDSgZc6M6U5x1Cf wDIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=cK2ReUjBLXXBh4lxBc6DTRo7cWOdEm7mAeUsBKVXSvQ=; b=HZPTqII8opFqg40iVrRohHt3OpJrBBnt3qijY6iMNohv0mLoHLjEGU21i3modJTAAx ZfHEwG8lBiYCuITIFGi++hdBpApb8uMDm2q+CS9S5Dh9IsEjTI2/ou+kWXz+CuX8DMPB GcAwrpGlfMqN9s+oO6480OCImSHyCoaRG/uRU4FIw7fhHrqqzkDhlzlBxC9sK1a4mmrr gqRGwqh7tYxNHqx7eP54uwgMsQfipcsSTZOGioYL66bpu/088ojG7LU1Ny63ZtWnjZ0t IA6NOwfgWl2fUDxcR/wfNckmvk/qQ3vOE1ywcmrBY82UXYHcEOcXES3EpqEZRKTdQN7q 3/sw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g3si16035396edu.276.2021.04.20.10.04.44; Tue, 20 Apr 2021 10:05:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233291AbhDTRCO (ORCPT + 99 others); Tue, 20 Apr 2021 13:02:14 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:50077 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233238AbhDTRCF (ORCPT ); Tue, 20 Apr 2021 13:02:05 -0400 Received: from mail-ed1-f72.google.com ([209.85.208.72]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1lYtkj-0004TR-8o for linux-kernel@vger.kernel.org; Tue, 20 Apr 2021 17:01:33 +0000 Received: by mail-ed1-f72.google.com with SMTP id m18-20020a0564025112b0290378d2a266ebso13455910edd.15 for ; Tue, 20 Apr 2021 10:01:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=cK2ReUjBLXXBh4lxBc6DTRo7cWOdEm7mAeUsBKVXSvQ=; b=RdJ6p7zMK63RHi4fnGdtjMCLrNuuISp5g3flatNxcCvDyMIj2Ibj5QIWbQHqaUD0XM 9gtMFTw1gUiq8TnA280ShHTxOBxR50xQYMyRx0eNqw8fu4g2OfWzK0ZuAKMaW9ufEXYN x1S9rRkafSRxl+ALudePkN5X4dBAPWpI0zyQoErkqjLKa7cPyAGvIgH6GYv/icnFDO4o Spoc073NyXCOLIEc1ehYbNe/LvUgrixAAYUra2SXCtsoc8A3CCUUSPLp+5j5sXTH6ngn ju4oSV4C02TiLirV5wdIKmEJBWwzmYmrPF+SACbGWphsHqLlqmhwvpgMsqvPmXRLQHqR l5aQ== X-Gm-Message-State: AOAM530Qo9fKuTtN5viDTDpURgKkUdw1mwAqTOd9W6J1if73KqIxl2TD uHWkZ9CtXokPoFJ+UvP2Ir+73erUbBw90PPOwlDg6gq3IEGXqtukz1b4+Dri2NH5KkXKSSq35XG m6inGn0TZd49oA84Y331sqOyD6nyQ3QW5YFCbELhLfg== X-Received: by 2002:a05:6402:1393:: with SMTP id b19mr33272138edv.333.1618938092891; Tue, 20 Apr 2021 10:01:32 -0700 (PDT) X-Received: by 2002:a05:6402:1393:: with SMTP id b19mr33272118edv.333.1618938092757; Tue, 20 Apr 2021 10:01:32 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-180-75.adslplus.ch. [188.155.180.75]) by smtp.gmail.com with ESMTPSA id x7sm16334441eds.67.2021.04.20.10.01.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Apr 2021 10:01:32 -0700 (PDT) From: Krzysztof Kozlowski To: Lee Jones , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , Liam Girdwood , Mark Brown , Alessandro Zummo , Alexandre Belloni , linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-rtc@vger.kernel.org Cc: Marek Szyprowski , Sylwester Nawrocki Subject: [PATCH 2/9] mfd: sec: Remove unused cfg_pmic_irq in platform data Date: Tue, 20 Apr 2021 19:01:11 +0200 Message-Id: <20210420170118.12788-3-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210420170118.12788-1-krzysztof.kozlowski@canonical.com> References: <20210420170118.12788-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The 'cfg_pmic_irq' field of platform data structure is not used and can be safely dropped. Signed-off-by: Krzysztof Kozlowski --- drivers/mfd/sec-core.c | 3 --- include/linux/mfd/samsung/core.h | 1 - 2 files changed, 4 deletions(-) diff --git a/drivers/mfd/sec-core.c b/drivers/mfd/sec-core.c index c61c1fc62165..653d02b98d53 100644 --- a/drivers/mfd/sec-core.c +++ b/drivers/mfd/sec-core.c @@ -382,9 +382,6 @@ static int sec_pmic_probe(struct i2c_client *i2c, return ret; } - if (pdata->cfg_pmic_irq) - pdata->cfg_pmic_irq(); - sec_irq_init(sec_pmic); pm_runtime_set_active(sec_pmic->dev); diff --git a/include/linux/mfd/samsung/core.h b/include/linux/mfd/samsung/core.h index f1631a39acfc..68afc2b97a41 100644 --- a/include/linux/mfd/samsung/core.h +++ b/include/linux/mfd/samsung/core.h @@ -85,7 +85,6 @@ struct sec_platform_data { int num_regulators; int irq_base; - int (*cfg_pmic_irq)(void); bool wakeup; bool buck_voltage_lock; -- 2.25.1