Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 146612
b: refs/heads/master
c: 87a00dc
h: refs/heads/master
v: v3
  • Loading branch information
Magnus Damm authored and Paul Mundt committed Apr 19, 2009
1 parent e9c3a29 commit 801588d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: eaab89197b733d0f81f07d6c44294b674479fda8
refs/heads/master: 87a00dc059e3af46303f1f56b0e8df41af988c7b
2 changes: 2 additions & 0 deletions trunk/arch/sh/include/asm/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ struct platform_device;
int platform_resource_setup_memory(struct platform_device *pdev,
char *name, unsigned long memsize);

void plat_early_device_setup(void);

7 changes: 7 additions & 0 deletions trunk/arch/sh/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include <linux/mmzone.h>
#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/platform_device.h>
#include <asm/uaccess.h>
#include <asm/io.h>
#include <asm/page.h>
Expand Down Expand Up @@ -328,6 +329,10 @@ static int __init parse_elfcorehdr(char *arg)
early_param("elfcorehdr", parse_elfcorehdr);
#endif

void __init __attribute__ ((weak)) plat_early_device_setup(void)
{
}

void __init setup_arch(char **cmdline_p)
{
enable_mmu();
Expand Down Expand Up @@ -381,6 +386,8 @@ void __init setup_arch(char **cmdline_p)

parse_early_param();

plat_early_device_setup();

sh_mv_setup();

/*
Expand Down

0 comments on commit 801588d

Please sign in to comment.