mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-18 10:13:57 +08:00
ARM: S3C64XX: Fix coding style errors on mach-real6410
Fix errors reported by checkpatch.pl script Signed-off-by: Darius Augulis <augulis.darius@gmail.com> [kgene.kim@samsung.com: minor title fix] Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
This commit is contained in:
parent
5343795fda
commit
591cd25ee3
@ -30,73 +30,73 @@
|
|||||||
#include <plat/devs.h>
|
#include <plat/devs.h>
|
||||||
#include <plat/regs-serial.h>
|
#include <plat/regs-serial.h>
|
||||||
|
|
||||||
#define UCON S3C2410_UCON_DEFAULT | S3C2410_UCON_UCLK
|
#define UCON (S3C2410_UCON_DEFAULT | S3C2410_UCON_UCLK)
|
||||||
#define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB
|
#define ULCON (S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB)
|
||||||
#define UFCON S3C2410_UFCON_RXTRIG8 | S3C2410_UFCON_FIFOMODE
|
#define UFCON (S3C2410_UFCON_RXTRIG8 | S3C2410_UFCON_FIFOMODE)
|
||||||
|
|
||||||
static struct s3c2410_uartcfg real6410_uartcfgs[] __initdata = {
|
static struct s3c2410_uartcfg real6410_uartcfgs[] __initdata = {
|
||||||
[0] = {
|
[0] = {
|
||||||
.hwport = 0,
|
.hwport = 0,
|
||||||
.flags = 0,
|
.flags = 0,
|
||||||
.ucon = UCON,
|
.ucon = UCON,
|
||||||
.ulcon = ULCON,
|
.ulcon = ULCON,
|
||||||
.ufcon = UFCON,
|
.ufcon = UFCON,
|
||||||
},
|
},
|
||||||
[1] = {
|
[1] = {
|
||||||
.hwport = 1,
|
.hwport = 1,
|
||||||
.flags = 0,
|
.flags = 0,
|
||||||
.ucon = UCON,
|
.ucon = UCON,
|
||||||
.ulcon = ULCON,
|
.ulcon = ULCON,
|
||||||
.ufcon = UFCON,
|
.ufcon = UFCON,
|
||||||
},
|
},
|
||||||
[2] = {
|
[2] = {
|
||||||
.hwport = 2,
|
.hwport = 2,
|
||||||
.flags = 0,
|
.flags = 0,
|
||||||
.ucon = UCON,
|
.ucon = UCON,
|
||||||
.ulcon = ULCON,
|
.ulcon = ULCON,
|
||||||
.ufcon = UFCON,
|
.ufcon = UFCON,
|
||||||
},
|
},
|
||||||
[3] = {
|
[3] = {
|
||||||
.hwport = 3,
|
.hwport = 3,
|
||||||
.flags = 0,
|
.flags = 0,
|
||||||
.ucon = UCON,
|
.ucon = UCON,
|
||||||
.ulcon = ULCON,
|
.ulcon = ULCON,
|
||||||
.ufcon = UFCON,
|
.ufcon = UFCON,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
/* DM9000AEP 10/100 ethernet controller */
|
/* DM9000AEP 10/100 ethernet controller */
|
||||||
|
|
||||||
static struct resource real6410_dm9k_resource[] = {
|
static struct resource real6410_dm9k_resource[] = {
|
||||||
[0] = {
|
[0] = {
|
||||||
.start = S3C64XX_PA_XM0CSN1,
|
.start = S3C64XX_PA_XM0CSN1,
|
||||||
.end = S3C64XX_PA_XM0CSN1 + 1,
|
.end = S3C64XX_PA_XM0CSN1 + 1,
|
||||||
.flags = IORESOURCE_MEM
|
.flags = IORESOURCE_MEM
|
||||||
},
|
},
|
||||||
[1] = {
|
[1] = {
|
||||||
.start = S3C64XX_PA_XM0CSN1 + 4,
|
.start = S3C64XX_PA_XM0CSN1 + 4,
|
||||||
.end = S3C64XX_PA_XM0CSN1 + 5,
|
.end = S3C64XX_PA_XM0CSN1 + 5,
|
||||||
.flags = IORESOURCE_MEM
|
.flags = IORESOURCE_MEM
|
||||||
},
|
},
|
||||||
[2] = {
|
[2] = {
|
||||||
.start = S3C_EINT(7),
|
.start = S3C_EINT(7),
|
||||||
.end = S3C_EINT(7),
|
.end = S3C_EINT(7),
|
||||||
.flags = IORESOURCE_IRQ,
|
.flags = IORESOURCE_IRQ,
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct dm9000_plat_data real6410_dm9k_pdata = {
|
static struct dm9000_plat_data real6410_dm9k_pdata = {
|
||||||
.flags = (DM9000_PLATF_16BITONLY | DM9000_PLATF_NO_EEPROM),
|
.flags = (DM9000_PLATF_16BITONLY | DM9000_PLATF_NO_EEPROM),
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct platform_device real6410_device_eth = {
|
static struct platform_device real6410_device_eth = {
|
||||||
.name = "dm9000",
|
.name = "dm9000",
|
||||||
.id = -1,
|
.id = -1,
|
||||||
.num_resources = ARRAY_SIZE(real6410_dm9k_resource),
|
.num_resources = ARRAY_SIZE(real6410_dm9k_resource),
|
||||||
.resource = real6410_dm9k_resource,
|
.resource = real6410_dm9k_resource,
|
||||||
.dev = {
|
.dev = {
|
||||||
.platform_data = &real6410_dm9k_pdata,
|
.platform_data = &real6410_dm9k_pdata,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct platform_device *real6410_devices[] __initdata = {
|
static struct platform_device *real6410_devices[] __initdata = {
|
||||||
@ -129,12 +129,12 @@ static void __init real6410_machine_init(void)
|
|||||||
/* set timing for nCS1 suitable for ethernet chip */
|
/* set timing for nCS1 suitable for ethernet chip */
|
||||||
|
|
||||||
__raw_writel((0 << S3C64XX_SROM_BCX__PMC__SHIFT) |
|
__raw_writel((0 << S3C64XX_SROM_BCX__PMC__SHIFT) |
|
||||||
(6 << S3C64XX_SROM_BCX__TACP__SHIFT) |
|
(6 << S3C64XX_SROM_BCX__TACP__SHIFT) |
|
||||||
(4 << S3C64XX_SROM_BCX__TCAH__SHIFT) |
|
(4 << S3C64XX_SROM_BCX__TCAH__SHIFT) |
|
||||||
(1 << S3C64XX_SROM_BCX__TCOH__SHIFT) |
|
(1 << S3C64XX_SROM_BCX__TCOH__SHIFT) |
|
||||||
(13 << S3C64XX_SROM_BCX__TACC__SHIFT) |
|
(13 << S3C64XX_SROM_BCX__TACC__SHIFT) |
|
||||||
(4 << S3C64XX_SROM_BCX__TCOS__SHIFT) |
|
(4 << S3C64XX_SROM_BCX__TCOS__SHIFT) |
|
||||||
(0 << S3C64XX_SROM_BCX__TACS__SHIFT), S3C64XX_SROM_BC1);
|
(0 << S3C64XX_SROM_BCX__TACS__SHIFT), S3C64XX_SROM_BC1);
|
||||||
|
|
||||||
platform_add_devices(real6410_devices, ARRAY_SIZE(real6410_devices));
|
platform_add_devices(real6410_devices, ARRAY_SIZE(real6410_devices));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user