Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp327743rwd; Wed, 14 Jun 2023 16:57:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7jgFkVcxkLfdT7L9Hd8zR9DF+eGl9yuu3w8NZRybbTEJeNZ0WnHZ6uHgt9Scbc9X4kGwCk X-Received: by 2002:a05:6214:d4c:b0:628:2e08:78b7 with SMTP id 12-20020a0562140d4c00b006282e0878b7mr22905063qvr.31.1686787073237; Wed, 14 Jun 2023 16:57:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686787073; cv=none; d=google.com; s=arc-20160816; b=rz2VjrH/4Knl9qytw3qQGW7M/v7h5PQRX6cakYFQKBgP3Yvey07yvos+zb5WBNvsPu qq0iqb22vo00I4BH1DZZsWnF5US5ZawjwPRT1wAY+BnGWTGgeRmBmUFsjXAwhdoKEPm3 vNJR9V8uD6bk7R8JwGzJluACux/8rXLnwbX2DToI8o9P2YOShf2IivX7qFha2SnBMnag uhEFZLPzWpWS8DErmIq0YVFAU7yZ6A5Uuds2BypJh7pvYtzUtcK1SGT97qVnmfJyoH+w d7J0CY8jieZXgzztgp/iDrvR3BHniXXT7TYDr0pOwA9sZrv9kgfOuP8b9SKoMBZk++J0 oUhQ== 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=zaDH14MfUTybYDXp0m0mPR2FAC0BT0s7zXD9zr5v/Mg=; b=Q7BcCmE9cptF7qJMfvDBUQqSF+EILygnN8kgiwp9qsz+kueQ1ZXM9nptXs59a0gDSA gzlKdfYt8RrXbfuaMF00zjZZj0nGrYFbe3aGCHshC1cDoRWXwR/yS9cMZSUuwaG3WR8y t3HYaaqqLsyU3N5zv0sEnIygbBCbCRJu/j3D6jOx4dM0/8RWzHcZ5sCFgyZ0D/zUp0FP PzEp2hQ1T1ZOnVk2qoY1TLXIQTMC0H/exvWFJcBJctySZ4UpJwqiLnduqNMT1lRo6NSZ Ugn42sDH30vI+m/tw3BBYoCKEkN26KeBX+vCrlD+8kXGfn97LyuVCN9GVYI8vIZ7GJ7h JsEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=BC48ERjp; 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 t3-20020a637803000000b0054869ad7424si11102504pgc.155.2023.06.14.16.57.41; Wed, 14 Jun 2023 16:57:53 -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=BC48ERjp; 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 S236285AbjFNXTA (ORCPT + 99 others); Wed, 14 Jun 2023 19:19:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234594AbjFNXSZ (ORCPT ); Wed, 14 Jun 2023 19:18:25 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F307271C; Wed, 14 Jun 2023 16:18:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686784693; x=1718320693; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=HZHl2n4pQk9SJY0+lqSTvrEjOmrphzRUODe48oQg0/w=; b=BC48ERjpXXAUNTTLtd6W2kFGmDFTukZ4hrdw2BLBCmjlueqJauZFvJUp asSHF3ZYiVw4BrQrZ0cJPtKe1O8XtdAiUYCNHvvrZmRvx5aAaPyyepnU3 0OUk3Fjm4RNGUDRAfHSn6bz8eo/mVqf0tYOjNOL33QeRu0wldNd89UyMc k+/uo1xXRahJZeF7zEnrn+kZ/FRhcuCTalbusDeJmsvSZ9n5nM5ZScXlA OaolWnLxwnKmOU9uWH3i5dNYwc1R3OliETYDQJgx4GYj5FRRlZagbQkkt w7HBKkUo7OzG5DxUpvlaolkynwYF0Wawo7WYas7UlgPS2gdQyIC5rpwf+ Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10741"; a="424648059" X-IronPort-AV: E=Sophos;i="6.00,243,1681196400"; d="scan'208";a="424648059" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jun 2023 16:14:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10741"; a="715387936" X-IronPort-AV: E=Sophos;i="6.00,243,1681196400"; d="scan'208";a="715387936" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga007.fm.intel.com with ESMTP; 14 Jun 2023 16:14:43 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id DB4E9133; Thu, 15 Jun 2023 02:14:51 +0300 (EEST) From: Andy Shevchenko To: Bartosz Golaszewski , Andy Shevchenko , Alexander Stein , linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org Cc: Linus Walleij , Bartosz Golaszewski , Andy Shevchenko , Geert Uytterhoeven Subject: [PATCH v2 1/4] gpio: aggregator: Remove CONFIG_OF and of_match_ptr() protections Date: Thu, 15 Jun 2023 02:14:43 +0300 Message-Id: <20230614231446.3687-2-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.40.0.1.gaa8946217a0b In-Reply-To: <20230614231446.3687-1-andriy.shevchenko@linux.intel.com> References: <20230614231446.3687-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 They stop the driver being used with ACPI PRP0001 and are something I want to avoid being cut and paste into new drivers. Also include mod_devicetable.h as we struct of_device_id is defined in there. Signed-off-by: Andy Shevchenko --- drivers/gpio/gpio-aggregator.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/gpio/gpio-aggregator.c b/drivers/gpio/gpio-aggregator.c index 20a686f12df7..1aa7455672d3 100644 --- a/drivers/gpio/gpio-aggregator.c +++ b/drivers/gpio/gpio-aggregator.c @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #include @@ -500,23 +501,21 @@ static int gpio_aggregator_probe(struct platform_device *pdev) return 0; } -#ifdef CONFIG_OF static const struct of_device_id gpio_aggregator_dt_ids[] = { /* * Add GPIO-operated devices controlled from userspace below, - * or use "driver_override" in sysfs + * or use "driver_override" in sysfs. */ {} }; MODULE_DEVICE_TABLE(of, gpio_aggregator_dt_ids); -#endif static struct platform_driver gpio_aggregator_driver = { .probe = gpio_aggregator_probe, .driver = { .name = DRV_NAME, .groups = gpio_aggregator_groups, - .of_match_table = of_match_ptr(gpio_aggregator_dt_ids), + .of_match_table = gpio_aggregator_dt_ids, }, }; -- 2.40.0.1.gaa8946217a0b