Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754100AbbGGEFa (ORCPT ); Tue, 7 Jul 2015 00:05:30 -0400 Received: from mail-bl2on0092.outbound.protection.outlook.com ([65.55.169.92]:44241 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751391AbbGGEFW (ORCPT ); Tue, 7 Jul 2015 00:05:22 -0400 Authentication-Results: spf=fail (sender IP is 66.35.236.227) smtp.mailfrom=opensource.altera.com; vger.kernel.org; dkim=none (message not signed) header.d=none; Authentication-Results: codeaurora.org; dkim=none (message not signed) header.d=none; From: To: , CC: , , , Dinh Nguyen Subject: [PATCHv2 2/6] clk: qoriq: make use of of_clk_parent_fill helper function Date: Mon, 6 Jul 2015 22:59:02 -0500 Message-ID: <1436241546-16731-3-git-send-email-dinguyen@opensource.altera.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1436241546-16731-1-git-send-email-dinguyen@opensource.altera.com> References: <1436241546-16731-1-git-send-email-dinguyen@opensource.altera.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [64.129.157.38] X-ClientProxiedBy: BLUPR01CA060.prod.exchangelabs.com (25.160.23.50) To CY1PR03MB1375.namprd03.prod.outlook.com (25.163.16.29) X-Microsoft-Exchange-Diagnostics-untrusted: 1;CY1PR03MB1375;2:8Wf2lDtq4owdfiykUjgr+iUNRyjsx1tQaYXRdqj+tceMpYKkGvubWX7S++h4++u6;3:tByw5nFItZLoP219PNQa5lybQFqtCA7nm6ZomR4xbe2KpG9GbDYiMzBj36la8yLV2A+IEo5ikVhal2tqxt0lv3cqIQIRGv6wkBF/YSwPEjo+9lWUjm6qCMVwDPm+nP+o7eCm0w9Y7O9v1Y089NWDnA==;25:wStM5Y1+wocuGwG0I+MV1Ja4aJV7sd1bNkvoXhZUTt3KCWuOAjkX7MKOlAs1b0WVq/VkHO4voUeoqnfmd7CN+M72JGoefjxIcFF56hvgm8fucZ4Xn47E32InmTkYeMxN6ruIuq6VMucmnm/zMR67l0jdGRpQ4BUdi40RIpew/3+sXv12f71DtTrIIxrf5VdhXs9ZYHaXp4hPYV+6pqvJFwfj9R49iGW+HuWTq9whxc6/nb/4TvK+rQUuj2xnr8WKcDEaLciTqjk2+Zz102rXIA==;20:2KDuIsfi2nSeQ+RFYqlzxU/GreUEYjzjZff5s6DmNPFgzDY4W1hQkS0rfmiUoW10QN0GezvdKDuJsrCtt9Hl43rzfgSygUkJfYaowTRDXOkbgJ/2Ske08HXl9F6LxIF8d1wIvGkfhmLCfpQk8xzpQldt+SXzrhDwkj0lZc5/ILA= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR03MB1375;UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN1PR03MB123; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:;UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:CY1PR03MB1375;BCL:0;PCL:0;RULEID:;SRVR:CY1PR03MB1375;BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:BN1PR03MB123;BCL:0;PCL:0;RULEID:;SRVR:BN1PR03MB123; X-Microsoft-Exchange-Diagnostics-untrusted: 1;CY1PR03MB1375;4:igtCboxlcKT5uWk/xFHWrYO6HVWrmL45KvGqU5C3IEZ9KdNMmDppsnx9UuxBzp0tKmUmT7/zhZpla2nrBFBTcjHfhw9BdxJVaVRv+oOMq33w20QvHeIHA2ys2LtXM/YPyq757OmYcZYP0h8l/XsbTlv1z+ysxmUaw8LhEMOBzWN9zPoJfMSlLrpofi3mev4xYo5i5OadIz8KyepmS9CkTuoBKYlvbtAxgdfC3M2XOoQzNdJyzAuo+9iP2xqEMnENl7NOndPzkcgVEwJWAUNEUgeeJ1t4Z4nrTYTQDJNmbOM= X-Forefront-PRVS: 0630013541 X-Forefront-Antispam-Report-Untrusted: SFV:NSPM;SFS:(10009020)(6009001)(19580395003)(92566002)(189998001)(66066001)(77096005)(122386002)(62966003)(40100003)(87976001)(5003940100001)(5001770100001)(50466002)(77156002)(42186005)(50226001)(50986999)(5001960100002)(5001920100001)(86152002)(2950100001)(76176999)(19580405001)(46102003)(33646002)(107886002)(53416004)(229853001)(47776003)(86362001)(48376002)(4001430100001);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR03MB1375;H:linux-builds1.altera.com;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics-untrusted: 1;CY1PR03MB1375;23:4nIa8DnrgFwxjthnwDCLO3WLQeoK15KOaCSJDCyqUtLvyhJjAUrfK0T9RkgdIuKR7jjkP+FMGU17a+R+k1E+wv0JmU9NTnka/gLw/IQlLTISP1D1ZXl4vTHoc9qXyq1iKUq9uFZ+3It3wJ7hIAG7jrdGKuI7OV0+C4BK11lwgqBvamJxlSEnu/C9UpiRQRmSzXESkvjG6VFoK3yZ66eq7rciC9gbYe8OGVMDjMDrU6SZ3xnOKqWXafNpzy3Bu1VfMX64Tt3L84ciq4UfF5MjQja1ObLNKyC9nFs57LYuiKn/GRHdROMoKWoxSRQzl/UGD1DZqZAXypkdGwsx6EVyDtURvwYSyWIh60hEvHsjq2XD9euiIrjfFitOfZca2IjVN42br/XYBEjmpSukKg+ePWJR1pgVKYAbj0ynCHkytWKKnGEvKGj8tuvVKB+WtXm/qKCQ4SikRH/I8kvjkZq1jfnPQl8lDERjCtI47BlfDY5uzRdgsTJqGhfKtS7nA//+7FYwQZOheCVdhjQVDZNR8r35CthpEkdSQ/syCrrZgy2za5H1L+2q5oJ+bVVuuLB5KxCbevY4OaRnlzPkuLsruPrs+TYZ3qMCTgPaVLJUiDqBfquSQwbdvqswhQfo/5KkIRWgkWfgp7FVmw9K6DcUneZWHXqXhoDWeNlECJDW8I/woxYLhDE5Bpi94jHWLR/5Pf6BF/uM5dHcDFGX+x8VrZ6WcyeG2uEjhYx2CAbyspyfH07G/u7rVE1s7cNpR3S5uTBbO46YAUKIvwDE4w9/t6WhJl4LMDEBKyTqnRw7NbtSwbsevlUsZzrqXsvMfaD0+Z5T1dHzdx48rjRW6jQ9Gl0IKLqOJAoDmLQ5IoO9t2zOgIbkmctUQjP7Yf9LOSh52BX/WnNW2iqMPeaI2cv9cA== X-Microsoft-Exchange-Diagnostics-untrusted: 1;CY1PR03MB1375;5:FBhwxZyWzYN1rPlZmHQMVbFt2AlMtPa775P171ueJDjzhX/PkBx2dIAGEdA7Sq7y1rF01mm6quuK+hDdj9GmXiWb4JAFTz3I1bywFgz9Y6k7VGHiIdRhMt7gxEneJO5J/yHz4+IAwleuDuw6iXit5w==;24:FM+BbT90eY+IJ8oIhMhH9wlWkP5+4dKiHAiU4WWmm0BcU2bHR1Qstyph3Yvp81NTxNBb+Ks3iNwoS+ZJLr4sp5XQ+Y23UhMq5DjsUum3cvE=;20:iZ0uGZfyfIBb8Tro9cE/lxUDWGVdz4l8Z5461m3gXaa2qD8y0qVbnxEoiKci3K4i8BifALJXo4JG48v1+9qE083V0NB+RBKhgocEl+VVQu53I9UOi4AIrNJR8gGkDIffnkQpH630EQm5w0htXjmjQDll0y7biU940kJvLss67Lw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR03MB1375 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: BL2FFO11FD049.protection.gbl X-Microsoft-Exchange-Diagnostics: 1;BL2FFO11FD049;1:QZJAurn9eHy2amECkREREW59AmSIgEm/Zm2N9HzTao9sxORypEhmblHHV04vWCzUG3HzcldlnhBNqcdaa1AvcWa/7w6iJ2l5z2m8ojWMYJ+J6RVfUWQBMfx3rHQbVJeRXCxmg9R7zenDooArJiT2v0GNCkcCwqrc9IIWvV2pfYdTBll9EzBvbt+giqb1pBOKGMvvakW2RB/tInXcYXHw7UyvncF1d5t+RV7SWe/NWU37I+MdctByIJpjIApQV1UyaofpACeaD4vzQiBs6MNTA1CosZT3eXUpViH+61QTzC8MqbaoUREZhUSGfrxOOVHM X-Forefront-Antispam-Report: CIP:66.35.236.227;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(2980300002)(339900001)(77096005)(19580395003)(86362001)(107886002)(50986999)(19580405001)(229853001)(106466001)(2950100001)(86152002)(189998001)(33646002)(6806004)(5001960100002)(87936001)(76176999)(53416004)(5001770100001)(5003940100001)(105606002)(85426001)(46102003)(92566002)(16796002)(62966003)(47776003)(50466002)(50226001)(40100003)(77156002)(48376002)(66066001)(122386002)(7099028)(4001430100001);DIR:OUT;SFP:1101;SCL:1;SRVR:BN1PR03MB123;H:sj-itexedge03.altera.priv.altera.com;FPR:;SPF:Fail;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN1PR03MB123;2:msKys890ergoRTEACW8R1qTzQuPZK71ZhbScnLQQ1dJNXNMUF3CS6WM78R0N3XF/;3:jaJVvs9j9nkoFfKwlpRDm7Orb3rCQqD0SCFFHBb2DHUnSIB0TXiRFOUOg340j4mdxRh7ldX+DwEo2tdE+aAz0aLjLQq/ar3i47maKtPC8phqW13oxIsr8G6jNKYkZM37/k+rnrmi1nGtwtL7+jy5xwUclA4Sai5p2NWYvZ0+vdJV1W/gzrnTsGO/rtwe7Frd62zMhrcZ4yXRatTjkg46BRNY0wAC+tQuDBtzo7EA/VE=;25:kRvTS+TnsuAZ5+P9yREit2CB+7sq1wySv0s0ln+wDuSxIwh+xwwc4iJ/FnomOobqBSHbZ9QAKNv3TXQkgttJgpDCMXJpLkFpzp/X/WqKY3A43ZPx7iQnOkbVdU0Gzzo/wSkJX5BfJjP+itkmXLJRKCp0agbO1Jd30TQsnXmPLmT+zm1xppE2tfSb4q+gQwntFJzsPPSrRPs0+aUY9A3zeUOm30dwwQ1gvYoQ2qVg7/dZsIV8AQb3f2dPcIm/hO9zsGFfALh0bcv+J4ESe1oKBQ==;20:50db6HSGW1de1JijQzErb/hxnKYy39fNW4L/vrRyZUPeRtCGNhT+mbJZVkNNMtVoNktxRtm8bzwWi8HLkAtTv2lfm7Rb9pEi9EpzYP+o3mHyzca2aK05+oOEXkCZtB+3PY2CrDCWWgt4m3cmaZhdW+RQlr2jL9r4P5+rjtuoOpw= X-Microsoft-Exchange-Diagnostics: 1;BN1PR03MB123;4:ozMNcwGA6Vp2LotRdPcoxs87Ca74r58LUl7LH85ccblcLFQUU9IpBYNMFuYgeYl97U6CB/8BPLC3496Lx1Lcoov39OQVrpwaUj7Lj3AU2btSB67qWVV0gZV4OwTBrgQkMEAESaWRisOr+4Z1bKzgHbuKYJxm04jw50V0w2N+o4g53X7R+T0E6FB0M3NLqPcqDnbhj0EUfRTSHvzYSlSDevmkOKjEVyaq5sK1tLjjNzGjRZbKhWhPMsJbhcgAt74GRJQUugjJPMpeD/fEQcSFbZowvSYdESa9KbRrmWyIuNw= X-Forefront-PRVS: 0630013541 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BN1PR03MB123;23:NqYKBVBdiMh4Io8iPfGK8f5yHZFzPgUWUj/l/8jAHq?= =?us-ascii?Q?Xu8pe5RdSjGQasLdgi/D93Hpkl1Z59XB4M9fUHJ6YoUeIB8hG3JcjpmZ00U/?= =?us-ascii?Q?Tho2Jzn1TUK/nuUevyIJ56cWz8EmZsHhsaPUfB0EusGZczJo1Wb0U9F0wdFz?= =?us-ascii?Q?OkorbMpdySpbzSrtj/61F/5gwTkMZoUD48ySoM9f1Dj3v4taI9fCQdeHSrPQ?= =?us-ascii?Q?ms7SwcGacju879i4bahuZaaQQNymwzuhaYZ3WBo2HCtgx0kX6+PgYfot0Y4X?= =?us-ascii?Q?KruObxyGOv3yf6zFRZGyQEjX0OKwXfE9K4nYE/JipI5ELFGmsIEpFjdiNk32?= =?us-ascii?Q?Z5UxhuSEUj8VbMIKsST1oAYp4wq4+m2DyQnQxEmMPvID8WDUAk940PdMb1/C?= =?us-ascii?Q?dpJ2raY9/CB0B/FoyFFBIfCxiKrXorMPFCBbp34E5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kBVMTyYy7yMs+IN5hpVqEkXr8vW0DFOk9M3/gH4No6y+TaSYaMQKrL8Uz7JIyguhUaQY/y6v6Wyl19k//VZ4R7T4GHeRPh/2xgEp+tZq4DlNCeE2plMeYfEwkxh0YvY1MPWq5mPJ8uOt9px0= X-OriginatorOrg: opensource.altera.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jul 2015 04:05:18.3347 (UTC) X-MS-Exchange-CrossTenant-Id: fbd72e03-d4a5-4110-adce-614d51f2077a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fbd72e03-d4a5-4110-adce-614d51f2077a;Ip=[66.35.236.227];Helo=[sj-itexedge03.altera.priv.altera.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1PR03MB123 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1256 Lines: 40 From: Dinh Nguyen Use of_clk_parent_fill to fill in the parent clock names' array. Signed-off-by: Dinh Nguyen --- drivers/clk/clk-qoriq.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/clk/clk-qoriq.c b/drivers/clk/clk-qoriq.c index cda90a9..d3f4570 100644 --- a/drivers/clk/clk-qoriq.c +++ b/drivers/clk/clk-qoriq.c @@ -70,7 +70,7 @@ static void __init core_mux_init(struct device_node *np) struct clk_init_data init; struct cmux_clk *cmux_clk; struct device_node *node; - int rc, count, i; + int rc, count; u32 offset; const char *clk_name; const char **parent_names; @@ -92,8 +92,7 @@ static void __init core_mux_init(struct device_node *np) if (!parent_names) return; - for (i = 0; i < count; i++) - parent_names[i] = of_clk_get_parent_name(np, i); + of_clk_parent_fill(np, parent_names, count); cmux_clk = kzalloc(sizeof(*cmux_clk), GFP_KERNEL); if (!cmux_clk) -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/