From patchwork Tue Aug 8 11:52:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: wangzhu X-Patchwork-Id: 13346001 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CFAA4C001DF for ; Tue, 8 Aug 2023 11:53:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=mqtREdGvU0+oegJ+8Aw0PEVGUM5mP0VK83MVAsBLPj0=; b=bpzUdftC1QdVL7 vRauy9tgFtGVoXhf+pD+CiBYJyz26R+hoJAlWjm/8RrDSMYFBD31b5cPMfc1Py/nVfjTOU6x2zdc1 zXRWMMywzRWQSj/rNFf2RPrWq4rJqQi7G812MQuDO4BO44d1lNKhxWbd1JJBVdFIbEVhl3fQCZ/A7 ZSttxl2uj8znxiRHKHE0mP6KiF/rZPkzL9HyVyynHMijwu6vG1/m4LkFUihjmGOUUUJiigfeGHaC9 WqgTd7YkUIvuhr8eWr2ptAS+n4XLxqqK0jztBy1mEY1g306lzrrLjCOKdIRaPmDIM8tVplfSqQFbE 2bPCkvLVl6cXo/ZWwgCQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qTLGk-002W8y-0h; Tue, 08 Aug 2023 11:52:58 +0000 Received: from szxga01-in.huawei.com ([45.249.212.187]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qTLGf-002W7Q-0p for linux-arm-kernel@lists.infradead.org; Tue, 08 Aug 2023 11:52:54 +0000 Received: from dggpeml500025.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4RKs0s4dXxztQr4; Tue, 8 Aug 2023 19:49:17 +0800 (CST) Received: from ubuntu1804.huawei.com (10.67.174.202) by dggpeml500025.china.huawei.com (7.185.36.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Tue, 8 Aug 2023 19:52:45 +0800 From: Zhu Wang To: , , , , , , , , , , , , , , , , , CC: Subject: [PATCH -next 3/5] rtc: nct3018y: remove redundant of_match_ptr() Date: Tue, 8 Aug 2023 19:52:11 +0800 Message-ID: <20230808115213.154377-4-wangzhu9@huawei.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230808115213.154377-1-wangzhu9@huawei.com> References: <20230808115213.154377-1-wangzhu9@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.67.174.202] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpeml500025.china.huawei.com (7.185.36.35) X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230808_045253_493748_33BD3E32 X-CRM114-Status: GOOD ( 12.29 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The driver depends on CONFIG_OF, so it is not necessary to use of_match_ptr() here. We remove of_match_ptr(). Signed-off-by: Zhu Wang --- drivers/rtc/rtc-nct3018y.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-nct3018y.c b/drivers/rtc/rtc-nct3018y.c index a4e3f924837e..ed4e606be8e5 100644 --- a/drivers/rtc/rtc-nct3018y.c +++ b/drivers/rtc/rtc-nct3018y.c @@ -538,7 +538,7 @@ MODULE_DEVICE_TABLE(of, nct3018y_of_match); static struct i2c_driver nct3018y_driver = { .driver = { .name = "rtc-nct3018y", - .of_match_table = of_match_ptr(nct3018y_of_match), + .of_match_table = nct3018y_of_match, }, .probe = nct3018y_probe, .id_table = nct3018y_id,