Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp2861776rwb; Mon, 5 Sep 2022 02:44:46 -0700 (PDT) X-Google-Smtp-Source: AA6agR7/FPOFL0jwqjKZzDsompRkZ2jXrCL5FeCzqUh2bmwhCOl/x/trMov/9MbMYINaBAfps1x5 X-Received: by 2002:a63:6a48:0:b0:42a:3cab:cc36 with SMTP id f69-20020a636a48000000b0042a3cabcc36mr41740714pgc.135.1662371086621; Mon, 05 Sep 2022 02:44:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662371086; cv=none; d=google.com; s=arc-20160816; b=0BsFd/0mc1+mpLHZXHf3yPdeAjx+irPAhQ6OhAtG7syoDgbvy7QcVjnB38o4pqOul5 lAD5fESnzac51kAf7Q5EOjomnBysNJWWA0a4j9n2cAAYhJkz9sgziTasyQT+AWIJiyyR KONlCXvQDDf9SPy4xGSGnztMXjXbdoe5DiruqFOMrh6RIEm63w0TR9lyDx7eTQCeEBqZ 9cl/XnKcJnZRtlLDfrb6uNgd3kEHO/QwROgbsWDowdtgVW+LDqU6+vtEK62tVzgXIyPr da6AX5xwO2w65FLGTVXMZRwGglk84nUhPpjeyBLWuDaZVGdfxf1HxlrEDdzbuaFDb7u+ eh5Q== 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=D4fCzDub5KkwlMx1k1/JzbPY8ZtORyKfA+rMg5jURaAzFYANfY8imJlHDMUwoU0yoa GGRNdG1hymhMYqay8Ae2V743fcVczuYUWtQj7Z7KK8fry9ppe1D26lNqNDabyT8yVqtd I9ykDFlAyIRQFl3vzyh0COJUw1Q6cJcNYNpSWvDlTki8pLjuApMcXCmFW2k/AGJJxXHc HzL1HtFOXTo8ikxcvsFZ4TUAVqTR7Z7MwZ25fNB83IVP7sCHYwL5AhRoFkJrApXU0RIr BMmvXOaGFV4tD64tHs7Ga256UqPOSr2y2Kexv1bfrdRMvSx0bKaTLjNoyM0PQx8SIYx8 3DdA== 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 m8-20020a170902f64800b00172a117cbcfsi10198081plg.324.2022.09.05.02.44.34; Mon, 05 Sep 2022 02:44:46 -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 S237914AbiIEIbo (ORCPT + 99 others); Mon, 5 Sep 2022 04:31:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236693AbiIEIbI (ORCPT ); Mon, 5 Sep 2022 04:31:08 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 621121209C for ; Mon, 5 Sep 2022 01:29:36 -0700 (PDT) Received: from fraeml735-chm.china.huawei.com (unknown [172.18.147.200]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4MLhRM6Pwlz688sr; Mon, 5 Sep 2022 16:25:35 +0800 (CST) Received: from lhrpeml500003.china.huawei.com (7.191.162.67) by fraeml735-chm.china.huawei.com (10.206.15.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 5 Sep 2022 10:29:34 +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.31; Mon, 5 Sep 2022 09:29:31 +0100 From: John Garry To: CC: , , , , , , John Garry Subject: [PATCH v3 4/5] bus: hisi_lpc: Don't guard ACPI IDs with ACPI_PTR() Date: Mon, 5 Sep 2022 16:23:05 +0800 Message-ID: <1662366186-233933-5-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1662366186-233933-1-git-send-email-john.garry@huawei.com> References: <1662366186-233933-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: dggems706-chm.china.huawei.com (10.3.19.183) 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