Skip to content

Commit

Permalink
ARM: S5PV210: use static declaration when it is not used in other files
Browse files Browse the repository at this point in the history
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
  • Loading branch information
Kukjin Kim committed Jan 21, 2012
1 parent ad01677 commit 85fd178
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions arch/arm/mach-s5pv210/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

static u64 dma_dmamask = DMA_BIT_MASK(32);

u8 pdma0_peri[] = {
static u8 pdma0_peri[] = {
DMACH_UART0_RX,
DMACH_UART0_TX,
DMACH_UART1_RX,
Expand Down Expand Up @@ -66,12 +66,12 @@ u8 pdma0_peri[] = {
DMACH_SPDIF,
};

struct dma_pl330_platdata s5pv210_pdma0_pdata = {
static struct dma_pl330_platdata s5pv210_pdma0_pdata = {
.nr_valid_peri = ARRAY_SIZE(pdma0_peri),
.peri_id = pdma0_peri,
};

struct amba_device s5pv210_device_pdma0 = {
static struct amba_device s5pv210_device_pdma0 = {
.dev = {
.init_name = "dma-pl330.0",
.dma_mask = &dma_dmamask,
Expand All @@ -87,7 +87,7 @@ struct amba_device s5pv210_device_pdma0 = {
.periphid = 0x00041330,
};

u8 pdma1_peri[] = {
static u8 pdma1_peri[] = {
DMACH_UART0_RX,
DMACH_UART0_TX,
DMACH_UART1_RX,
Expand Down Expand Up @@ -122,12 +122,12 @@ u8 pdma1_peri[] = {
DMACH_PCM2_TX,
};

struct dma_pl330_platdata s5pv210_pdma1_pdata = {
static struct dma_pl330_platdata s5pv210_pdma1_pdata = {
.nr_valid_peri = ARRAY_SIZE(pdma1_peri),
.peri_id = pdma1_peri,
};

struct amba_device s5pv210_device_pdma1 = {
static struct amba_device s5pv210_device_pdma1 = {
.dev = {
.init_name = "dma-pl330.1",
.dma_mask = &dma_dmamask,
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-s5pv210/mach-goni.c
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,7 @@ static struct s5p_fimc_isp_info goni_camera_sensors[] = {
},
};

struct s5p_platform_fimc goni_fimc_md_platdata __initdata = {
static struct s5p_platform_fimc goni_fimc_md_platdata __initdata = {
.isp_info = goni_camera_sensors,
.num_clients = ARRAY_SIZE(goni_camera_sensors),
};
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-s5pv210/mach-smdkv210.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ static struct dm9000_plat_data smdkv210_dm9000_platdata = {
.dev_addr = { 0x00, 0x09, 0xc0, 0xff, 0xec, 0x48 },
};

struct platform_device smdkv210_dm9000 = {
static struct platform_device smdkv210_dm9000 = {
.name = "dm9000",
.id = -1,
.num_resources = ARRAY_SIZE(smdkv210_dm9000_resources),
Expand Down

0 comments on commit 85fd178

Please sign in to comment.