Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp3522617pxb; Tue, 20 Apr 2021 10:04:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwV9il+P3HdZxxtkrO7YxErBQZS1wVFA3V41IpOMtT94q0DSIusqCE987qr0Z+sNN+K2hZN X-Received: by 2002:a17:906:6d15:: with SMTP id m21mr10866290ejr.34.1618938284492; Tue, 20 Apr 2021 10:04:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618938284; cv=none; d=google.com; s=arc-20160816; b=UjipchotHRXemjqxzcmo0x+vGWnJH+NrkD0uf0wYIwrI2J/g224DiyNYEDw8YYwllc 4zYHW/UOB7If+qpktceoiIPQvdtX5kpUcyW/BDyCEkGNXzYeoy1ASKItMfYnuT1Hv1xg OSPPyWXUrYlBDU4djHmQZAiLty0wOk08BhKUR/gN8VvBrck8WtcVq/JmFrEuDOGtbzB2 en/A9CNNc7aafmY18cN1bbfB280bomWMSlk+6aWx1pFa203C/HYNvMPJ/9p+sQcTZZCW OPD2tAVEUqC8KhpBpSB/hEW9oaG0CDBN6mOHlcVsjUFLks/HA7VKvvLfzUdJUbTi+hiP 00qg== 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=CZHnNFNaMNa8a85SBpXammff3rvFDkP+H98gsBQ8d3o=; b=sqVwkRjVSsIyOc/oX0ZSUw9yImQ2ZozLl5RGP6g9Lzv4zcgI4ZdHV1X0oPflQjny3I vaKWh3OCbHHvjIL3/j9F9rTjBsSeJH6g4/qfYMeNXnsd48X/yKvwTqKPP7EQCWmvXkbH 6HiR/TNa5YpdGlx5nMMvUifpjbL9tJTJhzLbP9jln0rWVmOnw3IT6qzv043NkpXeJUU4 8aABHudSqx4yCT1r0ozO65EWj+fJ+QLnOMjLJc7ojKOMpd0TCFKkTm9k5YS8fC8XrBml Lqz2KxvKOXiiLjR4mt3kZDJXWO5oD5nun1vW3gljouzizcKcoQQ4tTdscOyqrFHEVVA1 qXaA== 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 m11si14604171edr.252.2021.04.20.10.04.20; Tue, 20 Apr 2021 10:04:44 -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 S233384AbhDTRDZ (ORCPT + 99 others); Tue, 20 Apr 2021 13:03:25 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:50155 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233379AbhDTRDZ (ORCPT ); Tue, 20 Apr 2021 13:03:25 -0400 Received: from mail-ed1-f71.google.com ([209.85.208.71]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1lYtm0-0004dC-68 for linux-kernel@vger.kernel.org; Tue, 20 Apr 2021 17:02:52 +0000 Received: by mail-ed1-f71.google.com with SMTP id w14-20020aa7da4e0000b02903834aeed684so11713419eds.13 for ; Tue, 20 Apr 2021 10:02:52 -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=CZHnNFNaMNa8a85SBpXammff3rvFDkP+H98gsBQ8d3o=; b=gFiGwLEj4SZAEL4m1X/kGKdOtHT4BmeXnpoiLfJ4y4HoNwkv82vpVLjVwNG8CqtZGV MBmswBT2b6Wh6yhSXMlbEC3ihojH6lLKx/MRTJEVR9j/KYmxZixliYNkIBwArP/V37d0 NDjpaHmudbFLYUM+39N0lWr3S1gMuiyAgynfBew+ZAQCgmONndGUUodICQuZIMdY2LgE NXmJVwZig2SNFL2JhmDZdRO516yq4PXALofPbtJzFVe2Nc8FcPiuI02IVpGIHWNSSzeJ Ki2fRxNiHVK/LpzzDv5ShNQYcJO8pLxxn1A7fLOowQXn0SjsLFYRp11MPcqN2IJ0uQHQ SuqA== X-Gm-Message-State: AOAM532crMmdvmtZaHcfn9DR43euRqup1/17xIFfvJONENWL9dI/mxXq gMClUXhtPEjL5hiEk2UiOW3+XIHA2tGwTHR1ovzkfIYYlbfo/oOjdkRFS/P8t7GgQ7S/rVZgh13 gyBaCn01SdZitLSCg8p7MVRnARycRbxPsKxcHvsRIZQ== X-Received: by 2002:a17:906:4913:: with SMTP id b19mr28867172ejq.439.1618938170533; Tue, 20 Apr 2021 10:02:50 -0700 (PDT) X-Received: by 2002:a17:906:4913:: with SMTP id b19mr28867163ejq.439.1618938170410; Tue, 20 Apr 2021 10:02:50 -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.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Apr 2021 10:02:49 -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 7/9] rtc: s5m: Remove reference to parent's device pdata Date: Tue, 20 Apr 2021 19:02:42 +0200 Message-Id: <20210420170244.13467-3-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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The S5M RTC driver does not use parent's device (sec-core PMIC driver) platform data so there is no need to check for it. Signed-off-by: Krzysztof Kozlowski --- drivers/rtc/rtc-s5m.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/rtc/rtc-s5m.c b/drivers/rtc/rtc-s5m.c index 80b66f16db89..038269a6b08c 100644 --- a/drivers/rtc/rtc-s5m.c +++ b/drivers/rtc/rtc-s5m.c @@ -713,16 +713,10 @@ static int s5m8767_rtc_init_reg(struct s5m_rtc_info *info) static int s5m_rtc_probe(struct platform_device *pdev) { struct sec_pmic_dev *s5m87xx = dev_get_drvdata(pdev->dev.parent); - struct sec_platform_data *pdata = s5m87xx->pdata; struct s5m_rtc_info *info; const struct regmap_config *regmap_cfg; int ret, alarm_irq; - if (!pdata) { - dev_err(pdev->dev.parent, "Platform data not supplied\n"); - return -ENODEV; - } - info = devm_kzalloc(&pdev->dev, sizeof(*info), GFP_KERNEL); if (!info) return -ENOMEM; -- 2.25.1