Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935356AbcKNE7m (ORCPT ); Sun, 13 Nov 2016 23:59:42 -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 S935171AbcKNE7f (ORCPT ); Sun, 13 Nov 2016 23:59:35 -0500 X-AuditID: cbfee61b-f796f6d000004092-d4-582944aac608 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 , Dinh Nguyen Subject: [PATCH 05/16] ARM: socfpga: use generic API for enabling SCU Date: Mon, 14 Nov 2016 10:32:00 +0530 Message-id: <1479099731-28108-6-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+NgFlrIIsWRmVeSWpSXmKPExsVy+t9jQd1VLpoRBod/WFj8nXSM3WLVpzXM FnNnT2K0aN76ldHi/PkN7BabHl9jtbi8aw6bxYPVb9ksFm39wm5xqX8ik8X8bydZLTqWMVps fnCMzYHX4/K1i8wev39NYvSYeFbXY+esu+wem1Z1snlsXlLv0X9tErtH35ZVjB5zfn5j8fi8 SS6AK8rNJiM1MSW1SCE1Lzk/JTMv3VYpNMRN10JJIS8xN9VWKULXNyRISaEsMacUyDMyQAMO zgHuwUr6dgluGVvbuAv2cVRMaWtkbmCcwN7FyMkhIWAi8fLfNihbTOLCvfVsXYxcHEICsxgl epvXs0A4Pxklbu9+zgpSxSagK/Hk/VxmEFtEwE3iRmMHE0gRs8BqJomfz86wgCSEBVwlLn15 BtbAIqAq0bnwEpjNK+AhsW/xI0aIdXISN891gg3iFPCUmNN5hg3EFgKqeX7jOuMERt4FjAyr GCVSC5ILipPSc43yUsv1ihNzi0vz0vWS83M3MYKj55n0DsbDu9wPMQpwMCrx8Hbka0QIsSaW FVfmHmKU4GBWEuF1tdGMEOJNSaysSi3Kjy8qzUktPsRoCnTYRGYp0eR8YGTnlcQbmpibmBsb WJhbWpoYKYnzNs5+Fi4kkJ5YkpqdmlqQWgTTx8TBKdXAmPzJ0crwaV3qVnvjLf4Znxa6XLjm MeH9insfL/5c/fCrWk1gde57y0kRQfOfCJ6+fshb4mN3I/9hpc1X9iyq+sh6ZE+F1olP8u6T 0q2u6v99+s/0cEzn1ZlhwhcDpqbMU7Vkn5vY7blT7NahQLGps3IYbjcF3qw6+Vhy6fbc7g8R cv5/VFu6bJVYijMSDbWYi4oTAdj+fkW0AgAA X-MTR: 20000000000000000@CPGS Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1048 Lines: 36 Now as we have of_scu_enable which takes care of mapping scu base from DT, lets use it. CC: Dinh Nguyen Signed-off-by: Pankaj Dubey --- arch/arm/mach-socfpga/platsmp.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/arch/arm/mach-socfpga/platsmp.c b/arch/arm/mach-socfpga/platsmp.c index 0794574..d3f0a07 100644 --- a/arch/arm/mach-socfpga/platsmp.c +++ b/arch/arm/mach-socfpga/platsmp.c @@ -79,19 +79,10 @@ static int socfpga_a10_boot_secondary(unsigned int cpu, struct task_struct *idle static void __init socfpga_smp_prepare_cpus(unsigned int max_cpus) { - struct device_node *np; - void __iomem *socfpga_scu_base_addr; - - np = of_find_compatible_node(NULL, NULL, "arm,cortex-a9-scu"); - if (!np) { + if (of_scu_enable()) { pr_err("%s: missing scu\n", __func__); return; } - - socfpga_scu_base_addr = of_iomap(np, 0); - if (!socfpga_scu_base_addr) - return; - scu_enable(socfpga_scu_base_addr); } #ifdef CONFIG_HOTPLUG_CPU -- 2.7.4