From: Kefeng Wang <wangkefeng.wang@huawei.com> To: <robh+dt@kernel.org>, <linux-kernel@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org> Cc: <arnd@arndb.de>, <shawnguo@kernel.org>, <catalin.marinas@arm.com>, <grant.likely@linaro.org>, <olof@lixom.net>, <linux@arm.linux.org.uk>, <yamada.masahiro@socionext.com>, <guohanjun@huawei.com>, <wangkefeng.wang@huawei.com>, Ralf Baechle <ralf@linux-mips.org>, Alban Bedel <albeu@free.fr>, Paul Burton <paul.burton@imgtec.com>, James Hogan <james.hogan@imgtec.com>, Joshua Henderson <joshua.henderson@microchip.com>, Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com> Subject: [PATCH v5 08/18] mips: Remove unnecessary of_platform_populate with default match table Date: Wed, 1 Jun 2016 14:53:01 +0800 [thread overview] Message-ID: <1464763991-26634-9-git-send-email-wangkefeng.wang@huawei.com> (raw) In-Reply-To: <1464763991-26634-1-git-send-email-wangkefeng.wang@huawei.com> After patch "of/platform: Add common method to populate default bus", it is possible for arch code to remove unnecessary callers of of_platform_populate with default match table. Cc: Ralf Baechle <ralf@linux-mips.org> Cc: Alban Bedel <albeu@free.fr> Cc: Paul Burton <paul.burton@imgtec.com> Cc: James Hogan <james.hogan@imgtec.com> Cc: Joshua Henderson <joshua.henderson@microchip.com> Cc: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com> Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com> --- arch/mips/ath79/setup.c | 3 --- arch/mips/jz4740/setup.c | 8 -------- arch/mips/mti-sead3/sead3-setup.c | 8 -------- arch/mips/pistachio/init.c | 13 ------------- arch/mips/xilfpga/init.c | 13 ------------- 5 files changed, 45 deletions(-) diff --git a/arch/mips/ath79/setup.c b/arch/mips/ath79/setup.c index 7adab18..8887eb1 100644 --- a/arch/mips/ath79/setup.c +++ b/arch/mips/ath79/setup.c @@ -17,8 +17,6 @@ #include <linux/bootmem.h> #include <linux/err.h> #include <linux/clk.h> -#include <linux/clk-provider.h> -#include <linux/of_platform.h> #include <linux/of_fdt.h> #include <asm/bootinfo.h> @@ -285,7 +283,6 @@ void __init plat_time_init(void) static int __init ath79_setup(void) { - of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); if (mips_machtype == ATH79_MACH_GENERIC_OF) return 0; diff --git a/arch/mips/jz4740/setup.c b/arch/mips/jz4740/setup.c index 510fc0d..0914ef7 100644 --- a/arch/mips/jz4740/setup.c +++ b/arch/mips/jz4740/setup.c @@ -20,7 +20,6 @@ #include <linux/kernel.h> #include <linux/libfdt.h> #include <linux/of_fdt.h> -#include <linux/of_platform.h> #include <asm/bootinfo.h> #include <asm/prom.h> @@ -74,13 +73,6 @@ void __init device_tree_init(void) unflatten_and_copy_device_tree(); } -static int __init populate_machine(void) -{ - of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); - return 0; -} -arch_initcall(populate_machine); - const char *get_system_type(void) { if (config_enabled(CONFIG_MACH_JZ4780)) diff --git a/arch/mips/mti-sead3/sead3-setup.c b/arch/mips/mti-sead3/sead3-setup.c index 9f2f9b2..edfcaf0 100644 --- a/arch/mips/mti-sead3/sead3-setup.c +++ b/arch/mips/mti-sead3/sead3-setup.c @@ -8,7 +8,6 @@ */ #include <linux/init.h> #include <linux/libfdt.h> -#include <linux/of_platform.h> #include <linux/of_fdt.h> #include <asm/prom.h> @@ -107,10 +106,3 @@ void __init device_tree_init(void) unflatten_and_copy_device_tree(); } - -static int __init customize_machine(void) -{ - of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); - return 0; -} -arch_initcall(customize_machine); diff --git a/arch/mips/pistachio/init.c b/arch/mips/pistachio/init.c index ab79828..c50a670 100644 --- a/arch/mips/pistachio/init.c +++ b/arch/mips/pistachio/init.c @@ -14,7 +14,6 @@ #include <linux/kernel.h> #include <linux/of_address.h> #include <linux/of_fdt.h> -#include <linux/of_platform.h> #include <asm/cacheflush.h> #include <asm/dma-coherence.h> @@ -159,15 +158,3 @@ void __init device_tree_init(void) unflatten_and_copy_device_tree(); } - -static int __init plat_of_setup(void) -{ - if (!of_have_populated_dt()) - panic("Device tree not present"); - - if (of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL)) - panic("Failed to populate DT"); - - return 0; -} -arch_initcall(plat_of_setup); diff --git a/arch/mips/xilfpga/init.c b/arch/mips/xilfpga/init.c index ce2aee2..602e384 100644 --- a/arch/mips/xilfpga/init.c +++ b/arch/mips/xilfpga/init.c @@ -10,7 +10,6 @@ */ #include <linux/of_fdt.h> -#include <linux/of_platform.h> #include <asm/prom.h> @@ -43,15 +42,3 @@ void __init device_tree_init(void) unflatten_and_copy_device_tree(); } - -static int __init plat_of_setup(void) -{ - if (!of_have_populated_dt()) - panic("Device tree not present"); - - if (of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL)) - panic("Failed to populate DT"); - - return 0; -} -arch_initcall(plat_of_setup); -- 1.7.12.4
WARNING: multiple messages have this Message-ID (diff)
From: wangkefeng.wang@huawei.com (Kefeng Wang) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v5 08/18] mips: Remove unnecessary of_platform_populate with default match table Date: Wed, 1 Jun 2016 14:53:01 +0800 [thread overview] Message-ID: <1464763991-26634-9-git-send-email-wangkefeng.wang@huawei.com> (raw) In-Reply-To: <1464763991-26634-1-git-send-email-wangkefeng.wang@huawei.com> After patch "of/platform: Add common method to populate default bus", it is possible for arch code to remove unnecessary callers of of_platform_populate with default match table. Cc: Ralf Baechle <ralf@linux-mips.org> Cc: Alban Bedel <albeu@free.fr> Cc: Paul Burton <paul.burton@imgtec.com> Cc: James Hogan <james.hogan@imgtec.com> Cc: Joshua Henderson <joshua.henderson@microchip.com> Cc: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com> Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com> --- arch/mips/ath79/setup.c | 3 --- arch/mips/jz4740/setup.c | 8 -------- arch/mips/mti-sead3/sead3-setup.c | 8 -------- arch/mips/pistachio/init.c | 13 ------------- arch/mips/xilfpga/init.c | 13 ------------- 5 files changed, 45 deletions(-) diff --git a/arch/mips/ath79/setup.c b/arch/mips/ath79/setup.c index 7adab18..8887eb1 100644 --- a/arch/mips/ath79/setup.c +++ b/arch/mips/ath79/setup.c @@ -17,8 +17,6 @@ #include <linux/bootmem.h> #include <linux/err.h> #include <linux/clk.h> -#include <linux/clk-provider.h> -#include <linux/of_platform.h> #include <linux/of_fdt.h> #include <asm/bootinfo.h> @@ -285,7 +283,6 @@ void __init plat_time_init(void) static int __init ath79_setup(void) { - of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); if (mips_machtype == ATH79_MACH_GENERIC_OF) return 0; diff --git a/arch/mips/jz4740/setup.c b/arch/mips/jz4740/setup.c index 510fc0d..0914ef7 100644 --- a/arch/mips/jz4740/setup.c +++ b/arch/mips/jz4740/setup.c @@ -20,7 +20,6 @@ #include <linux/kernel.h> #include <linux/libfdt.h> #include <linux/of_fdt.h> -#include <linux/of_platform.h> #include <asm/bootinfo.h> #include <asm/prom.h> @@ -74,13 +73,6 @@ void __init device_tree_init(void) unflatten_and_copy_device_tree(); } -static int __init populate_machine(void) -{ - of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); - return 0; -} -arch_initcall(populate_machine); - const char *get_system_type(void) { if (config_enabled(CONFIG_MACH_JZ4780)) diff --git a/arch/mips/mti-sead3/sead3-setup.c b/arch/mips/mti-sead3/sead3-setup.c index 9f2f9b2..edfcaf0 100644 --- a/arch/mips/mti-sead3/sead3-setup.c +++ b/arch/mips/mti-sead3/sead3-setup.c @@ -8,7 +8,6 @@ */ #include <linux/init.h> #include <linux/libfdt.h> -#include <linux/of_platform.h> #include <linux/of_fdt.h> #include <asm/prom.h> @@ -107,10 +106,3 @@ void __init device_tree_init(void) unflatten_and_copy_device_tree(); } - -static int __init customize_machine(void) -{ - of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); - return 0; -} -arch_initcall(customize_machine); diff --git a/arch/mips/pistachio/init.c b/arch/mips/pistachio/init.c index ab79828..c50a670 100644 --- a/arch/mips/pistachio/init.c +++ b/arch/mips/pistachio/init.c @@ -14,7 +14,6 @@ #include <linux/kernel.h> #include <linux/of_address.h> #include <linux/of_fdt.h> -#include <linux/of_platform.h> #include <asm/cacheflush.h> #include <asm/dma-coherence.h> @@ -159,15 +158,3 @@ void __init device_tree_init(void) unflatten_and_copy_device_tree(); } - -static int __init plat_of_setup(void) -{ - if (!of_have_populated_dt()) - panic("Device tree not present"); - - if (of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL)) - panic("Failed to populate DT"); - - return 0; -} -arch_initcall(plat_of_setup); diff --git a/arch/mips/xilfpga/init.c b/arch/mips/xilfpga/init.c index ce2aee2..602e384 100644 --- a/arch/mips/xilfpga/init.c +++ b/arch/mips/xilfpga/init.c @@ -10,7 +10,6 @@ */ #include <linux/of_fdt.h> -#include <linux/of_platform.h> #include <asm/prom.h> @@ -43,15 +42,3 @@ void __init device_tree_init(void) unflatten_and_copy_device_tree(); } - -static int __init plat_of_setup(void) -{ - if (!of_have_populated_dt()) - panic("Device tree not present"); - - if (of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL)) - panic("Failed to populate DT"); - - return 0; -} -arch_initcall(plat_of_setup); -- 1.7.12.4
next prev parent reply other threads:[~2016-06-01 6:49 UTC|newest] Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top 2016-06-01 6:52 [PATCH v5 00/18] Cleanup for populate default bus Kefeng Wang 2016-06-01 6:52 ` Kefeng Wang 2016-06-01 6:52 ` [PATCH v5 01/18] of/platform: Add common method to " Kefeng Wang 2016-06-01 6:52 ` Kefeng Wang 2016-06-01 6:52 ` [PATCH v5 02/18] arc: Remove unnecessary of_platform_populate with default match table Kefeng Wang 2016-06-01 6:52 ` Kefeng Wang 2016-06-01 6:52 ` [PATCH v5 03/18] arm: " Kefeng Wang 2016-06-01 6:52 ` Kefeng Wang 2016-06-01 6:52 ` [PATCH v5 04/18] arm64: " Kefeng Wang 2016-06-01 6:52 ` Kefeng Wang 2016-06-01 8:16 ` Catalin Marinas 2016-06-01 8:16 ` Catalin Marinas 2016-06-01 6:52 ` [PATCH v5 05/18] c6x: " Kefeng Wang 2016-06-01 6:52 ` Kefeng Wang 2016-06-01 6:52 ` [PATCH v5 06/18] cris: " Kefeng Wang 2016-06-01 6:52 ` Kefeng Wang 2016-06-01 6:53 ` [PATCH v5 07/18] metag: " Kefeng Wang 2016-06-01 6:53 ` Kefeng Wang 2016-06-01 6:53 ` Kefeng Wang [this message] 2016-06-01 6:53 ` [PATCH v5 08/18] mips: " Kefeng Wang 2016-06-01 6:53 ` [PATCH v5 09/18] nios2: " Kefeng Wang 2016-06-01 6:53 ` Kefeng Wang 2016-06-01 6:53 ` [PATCH v5 10/18] sh: " Kefeng Wang 2016-06-01 6:53 ` Kefeng Wang 2016-06-01 6:53 ` [PATCH v5 11/18] xtensa: " Kefeng Wang 2016-06-01 6:53 ` Kefeng Wang 2016-06-01 6:53 ` [PATCH v5 12/18] arm: use of_platform_default_populate() to populate Kefeng Wang 2016-06-01 6:53 ` Kefeng Wang 2016-06-01 6:53 ` [PATCH v5 13/18] mips: use of_platform_default_populate() to populate default bus Kefeng Wang 2016-06-01 6:53 ` Kefeng Wang 2016-06-01 6:53 ` [PATCH v5 14/18] bus: imx-weim: " Kefeng Wang 2016-06-01 6:53 ` Kefeng Wang 2016-06-01 6:53 ` [PATCH v5 15/18] bus: uniphier-system-bus: " Kefeng Wang 2016-06-01 6:53 ` Kefeng Wang 2016-06-01 6:53 ` [PATCH v5 16/18] memory: omap-gpmc: " Kefeng Wang 2016-06-01 6:53 ` Kefeng Wang 2016-06-01 6:53 ` [PATCH v5 17/18] of: unittest: " Kefeng Wang 2016-06-01 6:53 ` Kefeng Wang 2016-06-01 6:53 ` [PATCH v5 18/18] Revert "of/platform: export of_default_bus_match_table" Kefeng Wang 2016-06-01 6:53 ` Kefeng Wang 2016-06-08 15:42 ` [PATCH v5 00/18] Cleanup for populate default bus Rob Herring 2016-06-08 15:42 ` Rob Herring 2016-06-15 14:02 ` Joerg Roedel 2016-06-15 14:02 ` Joerg Roedel 2016-06-24 20:36 ` Rob Herring 2016-06-24 20:36 ` Rob Herring
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1464763991-26634-9-git-send-email-wangkefeng.wang@huawei.com \ --to=wangkefeng.wang@huawei.com \ --cc=Zubair.Kakakhel@imgtec.com \ --cc=albeu@free.fr \ --cc=arnd@arndb.de \ --cc=catalin.marinas@arm.com \ --cc=grant.likely@linaro.org \ --cc=guohanjun@huawei.com \ --cc=james.hogan@imgtec.com \ --cc=joshua.henderson@microchip.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux@arm.linux.org.uk \ --cc=olof@lixom.net \ --cc=paul.burton@imgtec.com \ --cc=ralf@linux-mips.org \ --cc=robh+dt@kernel.org \ --cc=shawnguo@kernel.org \ --cc=yamada.masahiro@socionext.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.