Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3124528pxb; Mon, 18 Oct 2021 08:40:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxSOMBGjjZT6fhPnjt0Sw/gmiy797FCXElo4r3PESNq1/9gGaJyFdeXUFvJ4kA/RX/YCCmf X-Received: by 2002:a17:906:9241:: with SMTP id c1mr31035794ejx.125.1634571611122; Mon, 18 Oct 2021 08:40:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634571611; cv=none; d=google.com; s=arc-20160816; b=SuTBv6h9O2uVGeIS8HKKWOOgUoEFxTWBzKk2Wj8caL7iyS+0Ibk+KLJAMjg52wlEtB 03OxfWyKogGIO5O8cajXYtxkljGBmM1GC7lcSEgLW/YbKzZVv3pa7fjKs2PmS7Ywt2GG wCjBFtAT0BEmWeXpcNbThUvImApPyblPEhf1IttVJc/Grf9KgPZM+ZV2gQTzaqgq04NA mj+rXrAZa/0wKkunp6kNBqhHkGTLa+DZ1RDwZZgSuviVABSpdgb9CdE+rQYpt8rFBAoK qQjfjv//L+l7bcdgp9cL/NU9dWfcjzHaT+qrseB853jKmQtXEZrHbUioIFpnXQzkqKrk wZMQ== 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=Q2iq5J4m7/NJJndNozzIJaC9sFqQt7mzVvZffoIkuyM=; b=nWPgO792MtTe5aUeMWW14d/hzz8wuw0HPDmoGHNG2dtkJGdqxTVHUIYcI6urJbiifu hvpRWHa7WXzgc+jiwiyRgDkP+uCEQucjXDyLwjBaFmuLDleL2iBRqIFLMX110DNWe5cm L5PEjdpBLUq5xS2/f8lNwfx3Z9JVdKlXfN04+fYEayjVBGdG2SVzpUUOLKksSK6LxUOu fpe7twlxRNw0HXd/v7dMoYvkxuSZ1y0fw/CMKTSzDUascnnWOQBlSGBF04/8HrmX5exT VejHjL1i32d89IEQRApRSn0uoUNT4mE97w6ONTr50wgzfWYyE/WU+7PEbsAylnS8aAxw erIQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q11si26966972edd.253.2021.10.18.08.39.33; Mon, 18 Oct 2021 08:40:11 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233343AbhJRPjo (ORCPT + 99 others); Mon, 18 Oct 2021 11:39:44 -0400 Received: from mslow1.mail.gandi.net ([217.70.178.240]:51103 "EHLO mslow1.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231915AbhJRPje (ORCPT ); Mon, 18 Oct 2021 11:39:34 -0400 Received: from relay6-d.mail.gandi.net (unknown [217.70.183.198]) by mslow1.mail.gandi.net (Postfix) with ESMTP id D9A63C6E08 for ; Mon, 18 Oct 2021 15:37:21 +0000 (UTC) Received: (Authenticated sender: alexandre.belloni@bootlin.com) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 28705C0010; Mon, 18 Oct 2021 15:36:56 +0000 (UTC) From: Alexandre Belloni To: Alessandro Zummo , Alexandre Belloni Cc: linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/5] rtc: pcf8523: remove unecessary ifdefery Date: Mon, 18 Oct 2021 17:36:48 +0200 Message-Id: <20211018153651.82069-3-alexandre.belloni@bootlin.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211018153651.82069-1-alexandre.belloni@bootlin.com> References: <20211018153651.82069-1-alexandre.belloni@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If CONFIG_OF is not defined, of_property_read_bool will return false which is our default value Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-pcf8523.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/rtc/rtc-pcf8523.c b/drivers/rtc/rtc-pcf8523.c index 103557f48409..79a571db803b 100644 --- a/drivers/rtc/rtc-pcf8523.c +++ b/drivers/rtc/rtc-pcf8523.c @@ -376,9 +376,7 @@ static int pcf8523_probe(struct i2c_client *client, dev_pm_set_wake_irq(&client->dev, client->irq); } -#ifdef CONFIG_OF wakeup_source = of_property_read_bool(client->dev.of_node, "wakeup-source"); -#endif if (client->irq > 0 || wakeup_source) device_init_wakeup(&client->dev, true); -- 2.31.1