From patchwork Tue Apr 20 17:02:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 425563 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=ham 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 8BEC9C43461 for ; Tue, 20 Apr 2021 17:02:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 54199613D1 for ; Tue, 20 Apr 2021 17:02:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233401AbhDTRD0 (ORCPT ); Tue, 20 Apr 2021 13:03:26 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:50167 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233365AbhDTRDZ (ORCPT ); Tue, 20 Apr 2021 13:03:25 -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 1lYtm1-0004dY-0X for linux-samsung-soc@vger.kernel.org; Tue, 20 Apr 2021 17:02:53 +0000 Received: by mail-ed1-f72.google.com with SMTP id i18-20020aa7c7120000b02903853032ef71so4541096edq.22 for ; Tue, 20 Apr 2021 10:02:53 -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=uHDtfujd3OPxNtMM86LnHidWuIbqjKYUJi1OA9n+rmQ=; b=IbOEvU4r/Q/Qvap2w/9YCi86KaHZzkEcEpoc3XefyPEMzyIcWUaSyKjmsertLT2C8L ulGrEjX8DzeR3m6LOYRWwp/mGQXHHrATIXgPp+X1ttqc/LCswtP8/wisDCBbsK3qfKG+ dCySjlLXEQqkP5COcVfXUQpuFxDBZQvq25JLM/GvpzYmKNItuLMc3RstAgIxpQZzhVVj FQ/mQI5IpOaA2BWkCPJDwh8jGtbxhhQnSlHvvqdUOEIlSsqNfWRvAQTe6OBnN9FExvJu z4BPS3gTFpLbrYRV2XbGLrL3Bi2zt/qBhNO00O70vbU1zZKTSCMqbNCR13QUaDYMwvTo Hs7Q== X-Gm-Message-State: AOAM532cRZ1ss+bkFTW97v3Ew9NQYL3vIo4z+YDwnbhlkjqtfpokqDDW zWWbZQo/6RhuzGztzqhn7jtW1ARCi5KnijfLW9HEneSlIbL9siV8TXVWqsGX77enyyi3LwNtVtJ ezW2pyU8uWuEfM/sWOkyHZIWBRu4CdwhuTi7nI4gb0hdgPu5s X-Received: by 2002:a05:6402:26ca:: with SMTP id x10mr19010619edd.386.1618938172775; Tue, 20 Apr 2021 10:02:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/sePBPRPQUTmx8fDkJ2+CsjWnEpj49FgojrQhVJZqntZu2qHLjMn0Vt3q4U7LC4bOpSKRAQ== X-Received: by 2002:a05:6402:26ca:: with SMTP id x10mr19010591edd.386.1618938172615; Tue, 20 Apr 2021 10:02:52 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-180-75.adslplus.ch. [188.155.180.75]) by smtp.gmail.com with ESMTPSA id s20sm16590714edu.93.2021.04.20.10.02.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Apr 2021 10:02:52 -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 8/9] regulator: s2mpa01: Drop initialization via platform data Date: Tue, 20 Apr 2021 19:02:43 +0200 Message-Id: <20210420170244.13467-4-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210420170244.13467-1-krzysztof.kozlowski@canonical.com> References: <20210420170118.12788-1-krzysztof.kozlowski@canonical.com> <20210420170244.13467-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org None of the platforms with S2MPA01 use board files, so any initialization via platform data can be safely removed. Signed-off-by: Krzysztof Kozlowski --- drivers/regulator/s2mpa01.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/regulator/s2mpa01.c b/drivers/regulator/s2mpa01.c index 115f59530852..28b424fe7bea 100644 --- a/drivers/regulator/s2mpa01.c +++ b/drivers/regulator/s2mpa01.c @@ -340,7 +340,6 @@ static const struct regulator_desc regulators[] = { static int s2mpa01_pmic_probe(struct platform_device *pdev) { struct sec_pmic_dev *iodev = dev_get_drvdata(pdev->dev.parent); - struct sec_platform_data *pdata = dev_get_platdata(iodev->dev); struct regulator_config config = { }; struct s2mpa01_info *s2mpa01; int i; @@ -356,9 +355,6 @@ static int s2mpa01_pmic_probe(struct platform_device *pdev) for (i = 0; i < S2MPA01_REGULATOR_MAX; i++) { struct regulator_dev *rdev; - if (pdata) - config.init_data = pdata->regulators[i].initdata; - rdev = devm_regulator_register(&pdev->dev, ®ulators[i], &config); if (IS_ERR(rdev)) {