Skip to content

Commit 47ee751

Browse files
committed
Merge pull request raspberrypi#1011 from notro/sweeping
BCM270x: Clean out unused code
2 parents 51fe8aa + 5f8d28b commit 47ee751

File tree

4 files changed

+0
-189
lines changed

4 files changed

+0
-189
lines changed

arch/arm/mach-bcm2708/bcm2708.c

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -465,33 +465,6 @@ static struct platform_device bcm2708_gpio_device = {
465465
};
466466
#endif
467467

468-
static struct resource bcm2708_systemtimer_resources[] = {
469-
[0] = { /* system timer access */
470-
.start = ST_BASE,
471-
.end = ST_BASE + SZ_4K - 1,
472-
.flags = IORESOURCE_MEM,
473-
},
474-
{
475-
.start = IRQ_TIMER3,
476-
.end = IRQ_TIMER3,
477-
.flags = IORESOURCE_IRQ,
478-
}
479-
480-
};
481-
482-
static u64 systemtimer_dmamask = DMA_BIT_MASK(DMA_MASK_BITS_COMMON);
483-
484-
static struct platform_device bcm2708_systemtimer_device = {
485-
.name = "bcm2708_systemtimer",
486-
.id = -1, /* only one VideoCore I/O area */
487-
.resource = bcm2708_systemtimer_resources,
488-
.num_resources = ARRAY_SIZE(bcm2708_systemtimer_resources),
489-
.dev = {
490-
.dma_mask = &systemtimer_dmamask,
491-
.coherent_dma_mask = DMA_BIT_MASK(DMA_MASK_BITS_COMMON),
492-
},
493-
};
494-
495468
#ifdef CONFIG_MMC_BCM2835 /* Arasan emmc SD (new) */
496469
static struct resource bcm2835_emmc_resources[] = {
497470
[0] = {
@@ -520,27 +493,6 @@ struct platform_device bcm2835_emmc_device = {
520493
};
521494
#endif /* CONFIG_MMC_BCM2835 */
522495

523-
static struct resource bcm2708_powerman_resources[] = {
524-
[0] = {
525-
.start = PM_BASE,
526-
.end = PM_BASE + SZ_256 - 1,
527-
.flags = IORESOURCE_MEM,
528-
},
529-
};
530-
531-
static u64 powerman_dmamask = DMA_BIT_MASK(DMA_MASK_BITS_COMMON);
532-
533-
struct platform_device bcm2708_powerman_device = {
534-
.name = "bcm2708_powerman",
535-
.id = 0,
536-
.num_resources = ARRAY_SIZE(bcm2708_powerman_resources),
537-
.resource = bcm2708_powerman_resources,
538-
.dev = {
539-
.dma_mask = &powerman_dmamask,
540-
.coherent_dma_mask = 0xffffffffUL},
541-
};
542-
543-
544496
static struct platform_device bcm2708_alsa_devices[] = {
545497
[0] = {
546498
.name = "bcm2835_AUD0",
@@ -938,10 +890,8 @@ void __init bcm2708_init(void)
938890
w1_gpio_pdata.ext_pullup_enable_pin = w1_gpio_pullup;
939891
bcm_register_device_dt(&w1_device);
940892
#endif
941-
bcm_register_device(&bcm2708_systemtimer_device);
942893
bcm_register_device_dt(&bcm2708_fb_device);
943894
bcm_register_device_dt(&bcm2708_usb_device);
944-
bcm_register_device(&bcm2708_powerman_device);
945895

946896
#ifdef CONFIG_MMC_BCM2835
947897
bcm_register_device_dt(&bcm2835_emmc_device);

arch/arm/mach-bcm2709/bcm2709.c

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -485,35 +485,6 @@ static struct platform_device bcm2708_gpio_device = {
485485
};
486486
#endif
487487

488-
#ifdef SYSTEM_TIMER
489-
static struct resource bcm2708_systemtimer_resources[] = {
490-
[0] = { /* system timer access */
491-
.start = ST_BASE,
492-
.end = ST_BASE + SZ_4K - 1,
493-
.flags = IORESOURCE_MEM,
494-
},
495-
{
496-
.start = IRQ_TIMER3,
497-
.end = IRQ_TIMER3,
498-
.flags = IORESOURCE_IRQ,
499-
}
500-
501-
};
502-
503-
static u64 systemtimer_dmamask = DMA_BIT_MASK(DMA_MASK_BITS_COMMON);
504-
505-
static struct platform_device bcm2708_systemtimer_device = {
506-
.name = "bcm2708_systemtimer",
507-
.id = -1, /* only one VideoCore I/O area */
508-
.resource = bcm2708_systemtimer_resources,
509-
.num_resources = ARRAY_SIZE(bcm2708_systemtimer_resources),
510-
.dev = {
511-
.dma_mask = &systemtimer_dmamask,
512-
.coherent_dma_mask = DMA_BIT_MASK(DMA_MASK_BITS_COMMON),
513-
},
514-
};
515-
#endif
516-
517488
#ifdef CONFIG_MMC_BCM2835 /* Arasan emmc SD (new) */
518489
static struct resource bcm2835_emmc_resources[] = {
519490
[0] = {
@@ -542,27 +513,6 @@ struct platform_device bcm2835_emmc_device = {
542513
};
543514
#endif /* CONFIG_MMC_BCM2835 */
544515

545-
static struct resource bcm2708_powerman_resources[] = {
546-
[0] = {
547-
.start = PM_BASE,
548-
.end = PM_BASE + SZ_256 - 1,
549-
.flags = IORESOURCE_MEM,
550-
},
551-
};
552-
553-
static u64 powerman_dmamask = DMA_BIT_MASK(DMA_MASK_BITS_COMMON);
554-
555-
struct platform_device bcm2708_powerman_device = {
556-
.name = "bcm2708_powerman",
557-
.id = 0,
558-
.num_resources = ARRAY_SIZE(bcm2708_powerman_resources),
559-
.resource = bcm2708_powerman_resources,
560-
.dev = {
561-
.dma_mask = &powerman_dmamask,
562-
.coherent_dma_mask = 0xffffffffUL},
563-
};
564-
565-
566516
static struct platform_device bcm2708_alsa_devices[] = {
567517
[0] = {
568518
.name = "bcm2835_AUD0",
@@ -959,13 +909,9 @@ void __init bcm2709_init(void)
959909
w1_gpio_pdata.pin = w1_gpio_pin;
960910
w1_gpio_pdata.ext_pullup_enable_pin = w1_gpio_pullup;
961911
bcm_register_device_dt(&w1_device);
962-
#endif
963-
#ifdef SYSTEM_TIMER
964-
bcm_register_device(&bcm2708_systemtimer_device);
965912
#endif
966913
bcm_register_device_dt(&bcm2708_fb_device);
967914
bcm_register_device_dt(&bcm2708_usb_device);
968-
bcm_register_device(&bcm2708_powerman_device);
969915

970916
#ifdef CONFIG_MMC_BCM2835
971917
bcm_register_device_dt(&bcm2835_emmc_device);

arch/arm/mach-bcm2709/clock.c

Lines changed: 0 additions & 61 deletions
This file was deleted.

arch/arm/mach-bcm2709/clock.h

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)