Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp588441rwe; Thu, 1 Sep 2022 04:54:58 -0700 (PDT) X-Google-Smtp-Source: AA6agR5yFBlrap4JQzrfBrjK+sH/EUuBATdAhclEy4tkRkbeI6o40cRfbDgDqZjaNl7HA7fAkIcc X-Received: by 2002:a05:6a00:21c2:b0:52b:ff44:666a with SMTP id t2-20020a056a0021c200b0052bff44666amr31218060pfj.83.1662033298703; Thu, 01 Sep 2022 04:54:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662033298; cv=none; d=google.com; s=arc-20160816; b=BQbVkMQKF1UzpIJq4XaYXbaQMxxU6VgxIQbiqEBNZgBk1K2Jh3YA2tAXF4vGlPJ/M0 XJhBnzplla/UswP4E42o1p9mSgF60GKJKA5+orEsZ3w/zKUpSCSP7TU+0TBYeZcr3fJL 7nuBDaHsAxOnJqnlfUFejMY+DuL2s1vfPjVyMztlc945lzl5zsCBaqNLHaQE+sf4EfAT K6lJbBFegN4abfLT9J43S+3UnDiImzm7JnzfNkeu8ZdxEpYPrxvXCcnV62vFQOzpczlZ M+lUHf4LCzsUp2bIeqFRQ76r4Nc4lj4Idbs4Ee5Z6xc/DAzGOxSRhm+iWdna4tiAiBbH wO3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=Irp3P96vsjwSDVQd+ZucBm2xLmbVkyvIUzzJjPfurkY=; b=BzUwNfc03gRk4NJF2Yr1SiKOaBk50n6T2AxYGrLtiM2gGB5SFa0ShB3ant7O6LkwXY Uw8AwL7byb1/t1j52XLzR3CSFwXM6BknfkcQ97aUfPJHksHthumo+J9FRYLu11EURlm7 7FPflxPMlAVhNsAHcvs6Ih5Kamz0wC7qEVfFTmk7hNQPMNPUjeAdFNgrj/9tDOYbvjz+ J1OiWYC6vSU8i75A+YSCRQFDoxLqhWSwamnhlYftvVjV/tTocXBBTrHLIZNz0quDtR62 JGMj4ufZ4DuU60CcT1VXASbODkxQhySYynRnLsFmyksdEGL0HBjXW75pCNZ3VapYYvux xxwA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bd32-20020a056a0027a000b00537c5841b19si18091731pfb.310.2022.09.01.04.54.45; Thu, 01 Sep 2022 04:54:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234379AbiIALVU (ORCPT + 99 others); Thu, 1 Sep 2022 07:21:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234259AbiIALVM (ORCPT ); Thu, 1 Sep 2022 07:21:12 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CE06107C48 for ; Thu, 1 Sep 2022 04:21:11 -0700 (PDT) Received: from fraeml712-chm.china.huawei.com (unknown [172.18.147.201]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4MJJRQ18NKz67jxm; Thu, 1 Sep 2022 19:17:22 +0800 (CST) Received: from lhrpeml500003.china.huawei.com (7.191.162.67) by fraeml712-chm.china.huawei.com (10.206.15.61) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 1 Sep 2022 13:21:09 +0200 Received: from localhost.localdomain (10.69.192.58) by lhrpeml500003.china.huawei.com (7.191.162.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 1 Sep 2022 12:21:07 +0100 From: John Garry To: CC: , , , , , , John Garry Subject: [PATCH 4/5] bus: hisi_lpc: Don't guard ACPI IDs with ACPI_PTR() Date: Thu, 1 Sep 2022 19:14:30 +0800 Message-ID: <1662030871-182688-5-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1662030871-182688-1-git-send-email-john.garry@huawei.com> References: <1662030871-182688-1-git-send-email-john.garry@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.58] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To lhrpeml500003.china.huawei.com (7.191.162.67) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andy Shevchenko The OF ID table is not guarded, and the ACPI table does not needs it either. The IDs do not depend on the configuration. Hence drop ACPI_PTR() from the code and move ID table closer to its user. Signed-off-by: Andy Shevchenko Reviewed-by: Rafael J. Wysocki Signed-off-by: John Garry --- drivers/bus/hisi_lpc.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/bus/hisi_lpc.c b/drivers/bus/hisi_lpc.c index a6513a571d7b..74f4448bff9d 100644 --- a/drivers/bus/hisi_lpc.c +++ b/drivers/bus/hisi_lpc.c @@ -589,11 +589,6 @@ static int hisi_lpc_acpi_probe(struct device *hostdev) return ret; } - -static const struct acpi_device_id hisi_lpc_acpi_match[] = { - {"HISI0191"}, - {} -}; #else static int hisi_lpc_acpi_probe(struct device *dev) { @@ -688,11 +683,16 @@ static const struct of_device_id hisi_lpc_of_match[] = { {} }; +static const struct acpi_device_id hisi_lpc_acpi_match[] = { + {"HISI0191"}, + {} +}; + static struct platform_driver hisi_lpc_driver = { .driver = { .name = DRV_NAME, .of_match_table = hisi_lpc_of_match, - .acpi_match_table = ACPI_PTR(hisi_lpc_acpi_match), + .acpi_match_table = hisi_lpc_acpi_match, }, .probe = hisi_lpc_probe, .remove = hisi_lpc_remove, -- 2.35.3