Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9ee8c9f0 authored by wanzongshun's avatar wanzongshun Committed by Russell King
Browse files

[ARM] 5392/1: Delete redundant macros for w90p910



Delete the macros W90X900_RES and W90X900_DEVICE
I thought it will be better to define the structures
for each device directly.

Signed-off-by: default avatarWan ZongShun <mcuos.com@gmail.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent e9fc7823
Loading
Loading
Loading
Loading
+0 −22
Original line number Diff line number Diff line
@@ -46,28 +46,6 @@ extern void w90p910_map_io(struct map_desc *mach_desc, int size);
extern struct platform_device w90p910_serial_device;
extern struct sys_timer w90x900_timer;

#define W90X900_RES(name)				\
struct resource w90x900_##name##_resource[] = {		\
	[0] = {						\
		.start = name##_PA,			\
		.end   = name##_PA + 0x0ff,		\
		.flags = IORESOURCE_MEM,		\
	},						\
	[1] = {						\
		.start = IRQ_##name,			\
		.end   = IRQ_##name,			\
		.flags = IORESOURCE_IRQ,		\
	}						\
}

#define W90X900_DEVICE(devname, regname, devid, platdevname)		\
struct platform_device w90x900_##devname = {				\
	.name		= platdevname,					\
	.id		= devid,					\
	.num_resources 	= ARRAY_SIZE(w90x900_##regname##_resource),	\
	.resource 	= w90x900_##regname##_resource,			\
}

#define W90X900_8250PORT(name)					\
{								\
	.membase	= name##_BA,				\