Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp938201imw; Fri, 8 Jul 2022 14:51:42 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vBCHy6crP385+kwd0/NRtupQzeRjpZXzfXGrvU0HuxL7d+qse43gEeuHewekcj3sLLcCv3 X-Received: by 2002:a63:8049:0:b0:414:e8aa:b6bd with SMTP id j70-20020a638049000000b00414e8aab6bdmr5173611pgd.10.1657317101801; Fri, 08 Jul 2022 14:51:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657317101; cv=none; d=google.com; s=arc-20160816; b=iKZHhHDIhWoLOzIiLVgLAF4yA4+Mxx7W9x0IoamAnRx1p0boZEJdUVwJk4/AOVj6vT L1J3WHN4Otzw5e5KFp14FhcV1Sv1FNxblJIkdedh37D1UbxLLia9yuMdbjd9K+QDzI2o LY39N0WAm8RfafCyN7Iq1W0NT68BxF+PaY1QLvpJyxemxz3ylKIXPQ0+pJSFsP41+C1j jmeBYBSYHXArjeUpmIohuhkuOe9w09HU4mWDPYQbzvpr5uEOjo1ZIMx79ISe3QgGKbyz X1HGH4dY6axOdH/9dPzWwIEuib3ElC7JHzG29sF/BeRULp9LdO8C+FIqh4Y0FY7xl3/s UAhg== 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 :dkim-signature; bh=UO/5/NHvgDPYd+CNprU7y6BB3lw9dHagbnS9mBwZPQM=; b=ITIw7dWQOeMHlDGccY5UPPBMP3EKywXOCVUEwuNSHrqY7eyWc9Lx0eTJyoJaZBlhDe P3FNat+xCTNQ8Bsayx8Yl7dvfPG0nikGDFa2OkU/DDU4fPDUFLBjp+ZRAxIaRIq2Q6oP RNFJYMh6su5EgNtu7GPTB7HcNbpSEncLGckUzI9ULmDmz0y0qOda87jUwf1w8rKDNVAM Wq4+YCOtfMyPvmFRh2rN0lQPZE1E0ZOCRhKLQe4lnKiOEhdPeymUTRuELcC02YKOqxUm Kk/K5zJl3tbbYYU0dG35A+mP1MfronNDvEQxwiwNmOAX1DOGU/o2zWHkF2mZvoBz541A rPRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=NG5CEipF; 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=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 185-20020a6303c2000000b00412f6a2d2besi9035637pgd.548.2022.07.08.14.51.30; Fri, 08 Jul 2022 14:51:41 -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; dkim=pass header.i=@intel.com header.s=Intel header.b=NG5CEipF; 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=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240423AbiGHVJA (ORCPT + 99 others); Fri, 8 Jul 2022 17:09:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240346AbiGHVI4 (ORCPT ); Fri, 8 Jul 2022 17:08:56 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B3D27B34F for ; Fri, 8 Jul 2022 14:08:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1657314535; x=1688850535; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=aYeqEtB0ol/kEHCAJj+GSoyDW6QM2eAkrk+BT95dSLk=; b=NG5CEipFoPJlUQ0pZD6Rfugmz42KW3HumJHtqTL/UkdPyoQLeoTVDDON Z41e2mh5+yplWWn6xNbr1jionzHeCmu3uGRusovQ5uZ5yIv4BK/Q2EqDs 0OcmeGjq8czwqUJc4vZejtC4zkq1akBFQJzXf6ELkznK4fEfMsnlbW8ZD Q5fzWMc/W58i7bXMSL7ZiekaQEkGLXCf1Q21cQb71at54yNJ0BfKAxVo+ f4sPDHzLjpQ2meL+heXPMXAChrRO/nTtAIXQyxvFvb5gd9HMoaPLvkBTn LHO9vh7a7JRLE+0Gbz7W+NfZ2EJHClQ6X3ENJXwIQ9Px8rAzizq3p8N11 w==; X-IronPort-AV: E=McAfee;i="6400,9594,10402"; a="285494234" X-IronPort-AV: E=Sophos;i="5.92,256,1650956400"; d="scan'208";a="285494234" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jul 2022 14:08:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,256,1650956400"; d="scan'208";a="569078341" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga006.jf.intel.com with ESMTP; 08 Jul 2022 14:08:53 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id B12A35AD; Sat, 9 Jul 2022 00:09:00 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , "Rafael J. Wysocki" , linux-kernel@vger.kernel.org Cc: john.garry@huawei.com Subject: [PATCH v2 4/4] bus: hisi_lpc: Don't guard ACPI IDs with ACPI_PTR() Date: Sat, 9 Jul 2022 00:08:59 +0300 Message-Id: <20220708210859.6774-4-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220708210859.6774-1-andriy.shevchenko@linux.intel.com> References: <20220708210859.6774-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,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 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 Acked-by: John Garry Reviewed-by: Rafael J. Wysocki --- v2: added tags (John, Rafael), improved commit message (John) 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.1