ARM: Adjust the public device definition for w90x900
Subsystems (2)
PATCH 1/2 ARM: Adjust the public device definition for w90x900
Dear Russell,
In fact, this patch follows previous nine patches series, I adjust the position of platform device definition, if the device is public between any two CPUs, I locate them in dev.c rather than specific CPU file.
Signed-off-by Wan ZongShun <[email protected]>
--- arch/arm/mach-w90x900/cpu.h | 7 ++ arch/arm/mach-w90x900/dev.c | 149 ++++++++++++++++++++++++++------------- arch/arm/mach-w90x900/nuc950.c | 2 + arch/arm/mach-w90x900/w90p910.c | 48 +------------ 4 files changed, 111 insertions(+), 95 deletions(-)
arch/arm/mach-w90x900/cpu.h +7 -0
@@ -49,4 +49,11 @@ extern void nuc900_clock_source(struct device *dev, unsigned char *src);extern void nuc900_init_clocks (void );extern void nuc900_map_io (struct map_desc *mach_desc,int mach_size);extern void nuc900_board_init (struct platform_device **device,int size); + +/* for either public between 910 and 920, or between 920 and 950 */ +extern struct platform_device nuc900_serial_device; +extern struct platform_device nuc900_device_fmi; +extern struct platform_device nuc900_device_kpi; +extern struct platform_device nuc900_device_rtc; +extern struct platform_device nuc900_device_ts;
arch/arm/mach-w90x900/dev.c +100 -49
180 lines not on this page · raw message
arch/arm/mach-w90x900/nuc950.c +2 -0
@@ -41,6 +41,8 @@/* define specific CPU platform device */ static struct platform_device *nuc950_dev[]__initdata = { + &nuc900_device_kpi, + &nuc900_device_fmi, };/* define specific CPU platform io map */
arch/arm/mach-w90x900/w90p910.c +2 -46
57 lines not on this page · raw message
Signature · 1 line
1.5.6.3