From patchwork Tue Apr 20 17:01:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12214783 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8DFC2C43470 for ; Tue, 20 Apr 2021 17:01:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 511E3613D1 for ; Tue, 20 Apr 2021 17:01:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232901AbhDTRCH (ORCPT ); Tue, 20 Apr 2021 13:02:07 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:50078 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233239AbhDTRCF (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-0004TT-9u for linux-samsung-soc@vger.kernel.org; Tue, 20 Apr 2021 17:01:33 +0000 Received: by mail-ed1-f72.google.com with SMTP id w15-20020a056402268fb02903828f878ec5so13466633edd.5 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=sAso0+VYMrOpAPgqPQkbEbeUs8dtG8vnOuHmMPcyfqfCgmoYJnHr5u+9f0zuseQoka CbkJ8zcggUqOrR6JTyQc6VBa50JeEZKi0dV7qlC6upgOMsbNc4q2lDiPLOWLEGkCwkhE /StxsZ1/v+oyx9nFTKbZ0Os7EY3WGv9LwLEQyal02S4ugmzQ9d71dDhQThLHdBezNcwv TCU0iZGNh2rq65u2S0TPwbRVNBTA9fHzWVpitmB+oO/4FQRIdx3kE3s5LSAMZSggbLVb VeByxn6oXde/8lcdzLaCR3yV8ktIAvYUC0QyxN3kv5iTvnj40hMr2axuOsznPuYLWVVm TMtQ== X-Gm-Message-State: AOAM5337vVn6dW0dx7G5sbljUCyNZiduGhCw8JUGO+OgbkvZlmjRnLUP eD+AwBlPcfgpIHT94hHQhlM9CZXYSuhHEofvoDgdaOihir0PevvUIlekcaaoTZZIssZKx1bq2VJ iHndTxkPa3R8mgulwNYGf5xmtZJeYlsQSTMnEm3MtWTk95PRr X-Received: by 2002:a05:6402:1393:: with SMTP id b19mr33272130edv.333.1618938092888; Tue, 20 Apr 2021 10:01:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzsfo95Qfe4xzN04pErckPsV4xUg8gCjdkg5/kz+p8rSAzf6rBygGzRUjfOHfAKmqHyncJAFA== 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 Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@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;