From: Magnus Damm <magnus.damm@gmail.com>
To: linux-sh@vger.kernel.org
Subject: [PATCH 03/03] ARM: shmobile: Get rid of redundant EMEV2 mach callbacks
Date: Thu, 05 Jun 2014 05:32:12 +0000 [thread overview]
Message-ID: <20140605053212.19066.45533.sendpatchset@w520> (raw)
In-Reply-To: <20140213082628.30630.3186.sendpatchset@w520>
From: Magnus Damm <damm+renesas@opensource.se>
Update the EMEV2 specific SoC callbacks to get rid
of the calls to of_clk_init() and of_platform_populate().
Those calls are by default executed by the functions in
the shared ARM code in case the SoC specific mach
callbacks are NULL.
Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
---
arch/arm/mach-shmobile/setup-emev2.c | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
--- 0003/arch/arm/mach-shmobile/setup-emev2.c
+++ work/arch/arm/mach-shmobile/setup-emev2.c 2014-05-29 17:15:54.000000000 +0900
@@ -16,10 +16,9 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <linux/clk-provider.h>
#include <linux/kernel.h>
#include <linux/init.h>
-#include <linux/of_platform.h>
+#include <linux/mm.h>
#include <mach/common.h>
#include <asm/mach-types.h>
#include <asm/mach/arch.h>
@@ -42,12 +41,6 @@ static void __init emev2_map_io(void)
iotable_init(emev2_io_desc, ARRAY_SIZE(emev2_io_desc));
}
-static void __init emev2_add_standard_devices_dt(void)
-{
- of_clk_init(NULL);
- of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
-}
-
static const char *emev2_boards_compat_dt[] __initconst = {
"renesas,emev2",
NULL,
@@ -59,7 +52,6 @@ DT_MACHINE_START(EMEV2_DT, "Generic Emma
.smp = smp_ops(emev2_smp_ops),
.map_io = emev2_map_io,
.init_early = shmobile_init_delay,
- .init_machine = emev2_add_standard_devices_dt,
.init_late = shmobile_init_late,
.dt_compat = emev2_boards_compat_dt,
MACHINE_END
next prev parent reply other threads:[~2014-06-05 5:32 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-13 8:25 [PATCH 00/03] ARM: shmobile: Clean up the EMEV2 and KZM9D code base Magnus Damm
2014-02-13 8:26 ` [PATCH 01/03] ARM: shmobile: Remove legacy EMEV2 SoC support Magnus Damm
2014-02-17 3:23 ` Simon Horman
2014-02-18 4:16 ` Simon Horman
2014-02-18 4:25 ` Magnus Damm
2014-03-07 2:38 ` Simon Horman
2014-02-13 8:26 ` [PATCH 02/03] ARM: shmobile: Remove KZM9D board code Magnus Damm
2014-02-17 0:02 ` Simon Horman
2014-02-17 1:36 ` Magnus Damm
2014-02-17 1:44 ` Simon Horman
2014-02-13 8:26 ` [PATCH 03/03] ARM: shmobile: Get rid of legacy KZM9D defconfig Magnus Damm
2014-02-17 3:23 ` Simon Horman
2014-06-05 5:32 ` Magnus Damm [this message]
2014-06-05 8:13 ` [PATCH 03/03] ARM: shmobile: Get rid of redundant EMEV2 mach callbacks Geert Uytterhoeven
2014-06-05 21:40 ` Magnus Damm
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=20140605053212.19066.45533.sendpatchset@w520 \
--to=magnus.damm@gmail.com \
--cc=linux-sh@vger.kernel.org \
/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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).