From patchwork Thu Oct 5 13:59:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 148922 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2016:b0:403:3b70:6f57 with SMTP id fe22csp433729vqb; Thu, 5 Oct 2023 09:57:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH/TBf0p58INTYWc+DFxS+wGue9JYJG5nN3wPkXpydWn5u7+VplGqzVUhDm0VmSydGsXoM+ X-Received: by 2002:a17:902:dacd:b0:1c7:54ee:c53c with SMTP id q13-20020a170902dacd00b001c754eec53cmr6436294plx.57.1696525028234; Thu, 05 Oct 2023 09:57:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696525028; cv=none; d=google.com; s=arc-20160816; b=H7GEWiK4/H7QwsC38TfTrGLnYCOvOmXqtmVKLvg+AceNsZXzt6PPntyadtGjv+AWpl Wl8hTw4VQO2zJkXgxxKVWCtRJWIN1BAEoe0G34HBfIayNtVK8FW87v8C7n0CDFI9hyfM 2/qqwbjQX86kLXI55t2LafCQaSVkjbgct30UD7DW1toUdkcMk6ZEF1sAYUN6lpiDUhyE Yl3sF/u622df/V79ZJ+4YcYrKmUHaq6ltuE14/HYhj9FERrIvkSQwD0pHozn6OkV9EaG 7xXJhAJPkN3Ulpfi1u8dSMBfVMBE7Bl7gfXJ9WPb44X+yXja0c0Cb+BhC8GbQz773NNa B70g== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=Hju9CX0c0P+ngsTeDEQ6RbLAkka9lcbqsVC/njQgkGc=; fh=YQ/cS3rRR2DAF6/kulDJsDUGqhQz6KIpnQoge7FhUSs=; b=asrvYThCo6vLXYBM3Yxq/dwnOkrgAs2t073M8vCwxgJ6674EelIkpAb+gZ7XAvCYCE wL83xeioN6vuo8CwqrrIp5aO7YRRSHR4siT5XQdchy50/oRRKDHfAfSKuAc3xKHQkLaG 5AiBhWYFRS/PcsOfaqiMukO+Zyy2YnfGLwl2Npj0A4WAyorCll2qm1Y/NtnW//tJdpdW eU7U+4861jrS/hFpIJclOM0+vK1Tmg+eWtIIr6iCcDiqKsPBF6h078gUjkbdIO3eDKOt MMAaurvR5qu3HAl3ELDQwuneUSDFi+Ffs+LsacINrgt2BdgeH8yB9MZ4o5gGGSO17fph NeCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="I+UJ/siU"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id x5-20020a170902ec8500b001c7358e8cf3si425286plg.542.2023.10.05.09.57.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 09:57:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="I+UJ/siU"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id A3CF18021283; Thu, 5 Oct 2023 09:57:07 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239356AbjJEP7b (ORCPT + 18 others); Thu, 5 Oct 2023 11:59:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234043AbjJEP46 (ORCPT ); Thu, 5 Oct 2023 11:56:58 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADFC2662D; Thu, 5 Oct 2023 07:04:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696514686; x=1728050686; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=c+EU5e+VJU8NEVpBuRP3uooNbGb9G1Bmp+k4isAZ9oI=; b=I+UJ/siUQ4NNEvZvMFM+fu+j3Zde+8FnOxc+4xbQV44TcbJG52vUAalj pincitIqljuR3R97lFBesOhePP4hk0H2lnVZ29umAndFCvRwS/q3HTgPx bFa4+NY+PgwUvrA7IW412Op74moxVxgY7C8vc2CDunDOkc/B5pmciE8LR inqru4Qz6/m8WInJT80osxIvSfNfhihCIiMTCpwnc9zLYqWed/+/X8mfl n//KofCiin9AIVZ7lGWTS218c4M/mISSRwd66aEDqtM6hZbsZKqek7fal a5Fcr1eeM0LI7Uz1giRwLGxc6HfiXOdyWTD7ycGkUq7rRwzudKwnfwgK0 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10854"; a="386336382" X-IronPort-AV: E=Sophos;i="6.03,203,1694761200"; d="scan'208";a="386336382" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Oct 2023 06:59:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10854"; a="1083047510" X-IronPort-AV: E=Sophos;i="6.03,203,1694761200"; d="scan'208";a="1083047510" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga005.fm.intel.com with ESMTP; 05 Oct 2023 06:59:52 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 666BD345; Thu, 5 Oct 2023 16:59:51 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Mika Westerberg , Andy Shevchenko , Linus Walleij , Krzysztof Kozlowski Subject: [PATCH v1 1/1] pinctrl: denverton: Replace MODULE_ALIAS() with MODULE_DEVICE_TABLE() Date: Thu, 5 Oct 2023 16:59:45 +0300 Message-Id: <20231005135945.3672438-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.40.0.1.gaa8946217a0b MIME-Version: 1.0 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 05 Oct 2023 09:57:07 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778927909578028508 X-GMAIL-MSGID: 1778935428054632939 As Krzysztof pointed out the better is to use MODULE_DEVICE_TABLE() as it will be consistent with the content of the real ID table of the platform devices. Suggested-by: Krzysztof Kozlowski Signed-off-by: Andy Shevchenko --- drivers/pinctrl/intel/pinctrl-denverton.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/intel/pinctrl-denverton.c b/drivers/pinctrl/intel/pinctrl-denverton.c index a1a7242e0451..562a4f9188e4 100644 --- a/drivers/pinctrl/intel/pinctrl-denverton.c +++ b/drivers/pinctrl/intel/pinctrl-denverton.c @@ -261,6 +261,7 @@ static const struct platform_device_id dnv_pinctrl_platform_ids[] = { { "denverton-pinctrl", (kernel_ulong_t)&dnv_soc_data }, { } }; +MODULE_DEVICE_TABLE(platform, dnv_pinctrl_platform_ids); static struct platform_driver dnv_pinctrl_driver = { .probe = intel_pinctrl_probe_by_hid, @@ -287,5 +288,4 @@ module_exit(dnv_pinctrl_exit); MODULE_AUTHOR("Mika Westerberg "); MODULE_DESCRIPTION("Intel Denverton SoC pinctrl/GPIO driver"); MODULE_LICENSE("GPL v2"); -MODULE_ALIAS("platform:denverton-pinctrl"); MODULE_IMPORT_NS(PINCTRL_INTEL);