Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935544AbcKNFAI (ORCPT ); Mon, 14 Nov 2016 00:00:08 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:51703 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935716AbcKNE7r (ORCPT ); Sun, 13 Nov 2016 23:59:47 -0500 X-AuditID: cbfee61a-f79916d0000062de-8c-582944b170e9 From: Pankaj Dubey To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: rmk+kernel@armlinux.org.uk, arnd@arndb.de, horms@verge.net.au, magnus.damm@gmail.com, geert+renesas@glider.be, vireshk@kernel.org, shiraz.linux.kernel@gmail.com, krzk@kernel.org, thomas.ab@samsung.com, Pankaj Dubey , Liviu Dudau , Sudeep Holla , Lorenzo Pieralisi Subject: [PATCH 08/16] ARM: vexpress: use generic API for enabling SCU Date: Mon, 14 Nov 2016 10:32:03 +0530 Message-id: <1479099731-28108-9-git-send-email-pankaj.dubey@samsung.com> X-Mailer: git-send-email 2.7.4 In-reply-to: <1479099731-28108-1-git-send-email-pankaj.dubey@samsung.com> References: <1479099731-28108-1-git-send-email-pankaj.dubey@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrDIsWRmVeSWpSXmKPExsVy+t9jQd2NLpoRBlu/CVr8nXSM3WLu7EmM Fs1bvzJanD+/gd1i0+NrrBaXd81hsziwtJ3F4s3vF+wWD1a/ZbNYtPULu8Wl/olMFvO/nWS1 WH5qB4tFxzJGi80PjrE58HusmbeG0ePytYvMHr9/TWL0mHhW12PnrLvsHptWdbJ5bF5S79G3 ZRWjx5yf31g8Pm+SC+CKcrPJSE1MSS1SSM1Lzk/JzEu3VQoNcdO1UFLIS8xNtVWK0PUNCVJS KEvMKQXyjAzQgINzgHuwkr5dglvG+W8zmAsOcFbMvziZqYHxJ3sXIyeHhICJxMvrfUwQtpjE hXvr2boYuTiEBGYxSrw9OwPK+cko8efMH7AqNgFdiSfv5zKD2CICbhI3GjuYQIqYBb4xSZyY th+sSBgo0fdxNpjNIqAq8bTtHdg6XgEPiZ1HXkOtk5O4ea4TbBCngKfEnM4zbCC2EFDN8xvX GScw8i5gZFjFKJFakFxQnJSea5iXWq5XnJhbXJqXrpecn7uJERxTz6R2MB7c5X6IUYCDUYmH 94CZZoQQa2JZcWXuIUYJDmYlEV5XG6AQb0piZVVqUX58UWlOavEhRlOgwyYyS4km5wPjPa8k 3tDE3MTc2MDC3NLSxEhJnLdx9rNwIYH0xJLU7NTUgtQimD4mDk6pBkZTuT3zptec+m6/ZM+1 mcsfFllKTVi2UHeJhWdqRMA1n2Bz2b4FXSpaLlKVxzaK87p0/bnZuOX+johNx2s3p145w8+8 JK2VU88pPrHhXtneNSqya9x9E503zVyY/+J6ybXe5/J3H35etFZ+UZuop9GUtT/7zjErqSUt WCL/fY7DlKmKE/WFjtkosRRnJBpqMRcVJwIAfl1IDr8CAAA= X-MTR: 20000000000000000@CPGS Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1175 Lines: 39 Now as we have of_scu_enable which takes care of mapping scu base from DT, lets use it. CC: Liviu Dudau CC: Sudeep Holla CC: Lorenzo Pieralisi Signed-off-by: Pankaj Dubey --- arch/arm/mach-vexpress/platsmp.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/arch/arm/mach-vexpress/platsmp.c b/arch/arm/mach-vexpress/platsmp.c index 8b8d072..17dee2b 100644 --- a/arch/arm/mach-vexpress/platsmp.c +++ b/arch/arm/mach-vexpress/platsmp.c @@ -41,20 +41,9 @@ bool __init vexpress_smp_init_ops(void) return false; } -static const struct of_device_id vexpress_smp_dt_scu_match[] __initconst = { - { .compatible = "arm,cortex-a5-scu", }, - { .compatible = "arm,cortex-a9-scu", }, - {} -}; - static void __init vexpress_smp_dt_prepare_cpus(unsigned int max_cpus) { - struct device_node *scu = of_find_matching_node(NULL, - vexpress_smp_dt_scu_match); - - if (scu) - scu_enable(of_iomap(scu, 0)); - + of_scu_enable(); /* * Write the address of secondary startup into the * system-wide flags register. The boot monitor waits -- 2.7.4