Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3125975pxb; Mon, 18 Oct 2021 08:41:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+IrNw6pYPtzXIJy3faXL1Q97qbeqaAvL4EI4IBnoaLRaeh1Dcw2jypsouUFDqeew4SlKv X-Received: by 2002:a17:907:2da5:: with SMTP id gt37mr29300201ejc.282.1634571696762; Mon, 18 Oct 2021 08:41:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634571696; cv=none; d=google.com; s=arc-20160816; b=zPa9DYfB7x6lwvvWp9REMRTtVMItPCCeGjMgckRTv7EHaswh8tHj+8l35zMf+4HQDP x2fNAuIxwokPPORMoP4A7kPX3ryJIjMZVjbAUH8/SLJo+nSqkfDZuPDeBaIFCqFscoNC mD3DyrOiiWEVeppH1NaLQrezMrdNpGUFJkkQSAvpilrrVZWZANiAbD5jlBofiFQcYPav 59NLp6wV1IhqwsBmkIxLCSTx2sNPBwIWlI2hpQ339DGbv9ZeBlQukMwff5w82UEUDU2/ qIXcqz4atiWjLS9c+BGlJyx1sH7y/u3Jivf7e6xzvN/nzZpnSiZfMQ3iJh2VAlevNegq 4OrQ== 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=J63iGjSJZ10j1NdgxaTGqF4uChEbxGil/6GgvfPVBpI=; b=h4ZL7lr+TRI+B1QK5xCEWd7E6urY6d4mHdgU93K3DQBNsgpL/7D6HRaydi5j0IS3PX K36GxndrFCUARKLylur1eui+W+GmaBJnZbTANwUvzsQKW+pKqRTg7KEPQaLii9IiloV5 y8r70hc7+G9dPw5ryWbWATTq3iNAFy1/L2M2SD4BOtVMLEZ+2NNE32PTyXoqMAgIuIut 8HAOhqQzLzhCExxYmLoTMBfsbfglNsQC+K7lR+1t0zYwn1yd/ni2XM4CV2FPTg3Zmbj9 N3+o5Ycb7lVpKte++gJ8OyDbLK6BHz0oEDN1Cw9kd8AHNn89wZHVaHe0tcb5qqLpxIWz 6nGA== 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 i1si27927301ejw.372.2021.10.18.08.41.12; Mon, 18 Oct 2021 08:41:36 -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 S232417AbhJRPjP (ORCPT + 99 others); Mon, 18 Oct 2021 11:39:15 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:37651 "EHLO relay10.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231946AbhJRPjM (ORCPT ); Mon, 18 Oct 2021 11:39:12 -0400 Received: (Authenticated sender: alexandre.belloni@bootlin.com) by relay10.mail.gandi.net (Postfix) with ESMTPSA id EB9D7240010; 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 4/5] rtc: pcf8523: allow usage on ACPI platforms Date: Mon, 18 Oct 2021 17:36:49 +0200 Message-Id: <20211018153651.82069-4-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 Always provide an OF table to ensure ACPI platforms can also use this driver. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-pcf8523.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/rtc/rtc-pcf8523.c b/drivers/rtc/rtc-pcf8523.c index 79a571db803b..181c3425d6c7 100644 --- a/drivers/rtc/rtc-pcf8523.c +++ b/drivers/rtc/rtc-pcf8523.c @@ -389,19 +389,17 @@ static const struct i2c_device_id pcf8523_id[] = { }; MODULE_DEVICE_TABLE(i2c, pcf8523_id); -#ifdef CONFIG_OF static const struct of_device_id pcf8523_of_match[] = { { .compatible = "nxp,pcf8523" }, { .compatible = "microcrystal,rv8523" }, { } }; MODULE_DEVICE_TABLE(of, pcf8523_of_match); -#endif static struct i2c_driver pcf8523_driver = { .driver = { .name = "rtc-pcf8523", - .of_match_table = of_match_ptr(pcf8523_of_match), + .of_match_table = pcf8523_of_match, }, .probe = pcf8523_probe, .id_table = pcf8523_id, -- 2.31.1