Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp297915pxu; Wed, 2 Dec 2020 23:48:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJze0OvLJV8uOj1uF7zOBGJExIMxbubHbexPp9fa6AFNiMCzPsTxktpoZUD3/Jyqwvd7lHWC X-Received: by 2002:a17:906:3099:: with SMTP id 25mr1382451ejv.321.1606981718700; Wed, 02 Dec 2020 23:48:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606981718; cv=none; d=google.com; s=arc-20160816; b=PUMlII/65lQN2ZkHIVZp0y7SIT8cGeX5o2z5WC+L2UX/AC5UVp9l/XOJK4cEVr1lmT 6DSgvR3JSNHOeWTH1lqdue3EKIiTutZORLMYadksWWF6nc+rvO/v3ppe4wcyp9SyH7Wm A6Frk8qEauep6xCz9J9diZ+ilJibzD5+59ZsfAeD2bJe4zqnqdGQzQYxXton0VT90iA/ Fb6/YL3Vt3VnSmubOVAHWQ8KqD4uElO/oWNzLhfHxbOTeeGCuxVXLrl+KKPxXTxi/bNQ PbwUchMwfQvoE2W0o9OloJ4O7cqY2c571C2xDgQg9Tvp3VRFItTo98gnIrVruCxtrJRm Hhiw== 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; bh=+8LQr4suM+Yn/u3796DytdK0A/SHvtsSCXHozw4Zc5E=; b=riQLIhARjAUG/cb8tC/9DgeriPmCpFJpjeOP5oxJd8+R9m89tNKwGa4pEKDlFIeIcs BjAJHVw7wzwWkvkBoTo0N8ktjaf4MCRzCuoR8QEOmHOsSj0lGCXkh0wWxM3saKxfwD5t f67JIK9qOqWn2MG/3bz397xj2SQaoNkKxs3rxR49pvcAFxrR3Yg1ltL1MmvR0HJTRHKd ANTZxeNObkzr/DwzlT1qII8YTgYrr7/pEwsYnF30is9ntApo9WfyardHNMQbf2pWrTt/ UPu9f9T8uAVUjTNeL2/WyMZGEl5LsOTtxecM6gM1ISPpEeVs+gzU1yIDMqYnEqyCuOC/ yGZg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r17si459069edv.234.2020.12.02.23.48.16; Wed, 02 Dec 2020 23:48:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388182AbgLCHnd (ORCPT + 99 others); Thu, 3 Dec 2020 02:43:33 -0500 Received: from mx0a-00128a01.pphosted.com ([148.163.135.77]:30384 "EHLO mx0a-00128a01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729797AbgLCHnd (ORCPT ); Thu, 3 Dec 2020 02:43:33 -0500 Received: from pps.filterd (m0167089.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 0B37f2KF009427; Thu, 3 Dec 2020 02:42:39 -0500 Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0a-00128a01.pphosted.com with ESMTP id 355vjemypy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 03 Dec 2020 02:42:38 -0500 Received: from SCSQMBX10.ad.analog.com (SCSQMBX10.ad.analog.com [10.77.17.5]) by nwd2mta4.analog.com (8.14.7/8.14.7) with ESMTP id 0B37gbL1051510 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=FAIL); Thu, 3 Dec 2020 02:42:37 -0500 Received: from SCSQCASHYB7.ad.analog.com (10.77.17.133) by SCSQMBX10.ad.analog.com (10.77.17.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1779.2; Wed, 2 Dec 2020 23:42:36 -0800 Received: from SCSQMBX10.ad.analog.com (10.77.17.5) by SCSQCASHYB7.ad.analog.com (10.77.17.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1779.2; Wed, 2 Dec 2020 23:42:35 -0800 Received: from zeus.spd.analog.com (10.66.68.11) by SCSQMBX10.ad.analog.com (10.77.17.5) with Microsoft SMTP Server id 15.1.1779.2 via Frontend Transport; Wed, 2 Dec 2020 23:42:35 -0800 Received: from saturn.ad.analog.com ([10.48.65.108]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 0B37gT1X021157; Thu, 3 Dec 2020 02:42:32 -0500 From: Alexandru Ardelean To: , CC: , , , , , Alexandru Ardelean Subject: [RESEND PATCH 2/2] clk: axi-clkgen: move the OF table at the bottom of the file Date: Thu, 3 Dec 2020 09:40:37 +0200 Message-ID: <20201203074037.26940-2-alexandru.ardelean@analog.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20201203074037.26940-1-alexandru.ardelean@analog.com> References: <20201203074037.26940-1-alexandru.ardelean@analog.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.312,18.0.737 definitions=2020-12-03_03:2020-12-03,2020-12-03 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 bulkscore=0 phishscore=0 clxscore=1015 mlxscore=0 mlxlogscore=999 malwarescore=0 adultscore=0 impostorscore=0 priorityscore=1501 spamscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012030046 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The change is mostly cosmetic. No functional changes. Since the driver now uses of_device_get_match_data() to obtain some driver specific info, there is no need to define the OF table before the probe function. Signed-off-by: Alexandru Ardelean --- drivers/clk/clk-axi-clkgen.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/clk/clk-axi-clkgen.c b/drivers/clk/clk-axi-clkgen.c index 963a62e9c728..ad86e031ba3e 100644 --- a/drivers/clk/clk-axi-clkgen.c +++ b/drivers/clk/clk-axi-clkgen.c @@ -496,15 +496,6 @@ static const struct clk_ops axi_clkgen_ops = { .get_parent = axi_clkgen_get_parent, }; -static const struct of_device_id axi_clkgen_ids[] = { - { - .compatible = "adi,axi-clkgen-2.00.a", - .data = &axi_clkgen_zynq_default_limits, - }, - { }, -}; -MODULE_DEVICE_TABLE(of, axi_clkgen_ids); - static int axi_clkgen_probe(struct platform_device *pdev) { const struct axi_clkgen_limits *dflt_limits; @@ -568,6 +559,15 @@ static int axi_clkgen_remove(struct platform_device *pdev) return 0; } +static const struct of_device_id axi_clkgen_ids[] = { + { + .compatible = "adi,axi-clkgen-2.00.a", + .data = &axi_clkgen_zynq_default_limits, + }, + { } +}; +MODULE_DEVICE_TABLE(of, axi_clkgen_ids); + static struct platform_driver axi_clkgen_driver = { .driver = { .name = "adi-axi-clkgen", -- 2.27.0