diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-03 10:36:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-03 10:36:36 -0400 |
commit | b463036ad7c6e9a74275f4f901acb3dbb74ec1ad (patch) | |
tree | bfb3f6bb5c93f32728e5cfd052041f0619055f71 /arch/cris/arch-v32/drivers | |
parent | a06cb1ae3cb64367c0fdc313c43ebb0558e51827 (diff) | |
parent | d75d806cbbfb9c775e87779cd281c9c408c7aba3 (diff) |
Merge tag 'cris-for-linus-3.7' of git://jni.nu/cris
Pull CRIS changes from Jesper Nilsson:
"Removal of some unused code from the CRIS port"
* tag 'cris-for-linus-3.7' of git://jni.nu/cris:
CRIS: Remove VCS simulator specific code
cris/PCI: remove pcibios_assign_resources()
Diffstat (limited to 'arch/cris/arch-v32/drivers')
-rw-r--r-- | arch/cris/arch-v32/drivers/axisflashmap.c | 29 | ||||
-rw-r--r-- | arch/cris/arch-v32/drivers/pci/bios.c | 25 |
2 files changed, 0 insertions, 54 deletions
diff --git a/arch/cris/arch-v32/drivers/axisflashmap.c b/arch/cris/arch-v32/drivers/axisflashmap.c index b34438e026be..1b6ad6247204 100644 --- a/arch/cris/arch-v32/drivers/axisflashmap.c +++ b/arch/cris/arch-v32/drivers/axisflashmap.c | |||
@@ -329,7 +329,6 @@ static int __init init_axis_flash(void) | |||
329 | } | 329 | } |
330 | #endif | 330 | #endif |
331 | 331 | ||
332 | #ifndef CONFIG_ETRAX_VCS_SIM | ||
333 | main_mtd = flash_probe(); | 332 | main_mtd = flash_probe(); |
334 | if (main_mtd) | 333 | if (main_mtd) |
335 | printk(KERN_INFO "%s: 0x%08x bytes of NOR flash memory.\n", | 334 | printk(KERN_INFO "%s: 0x%08x bytes of NOR flash memory.\n", |
@@ -603,34 +602,7 @@ static int __init init_axis_flash(void) | |||
603 | "partition %d\n", part); | 602 | "partition %d\n", part); |
604 | } | 603 | } |
605 | } | 604 | } |
606 | #endif /* CONFIG_EXTRAX_VCS_SIM */ | ||
607 | 605 | ||
608 | #ifdef CONFIG_ETRAX_VCS_SIM | ||
609 | /* For simulator, always use a RAM partition. | ||
610 | * The rootfs will be found after the kernel in RAM, | ||
611 | * with romfs_start and romfs_end indicating location and size. | ||
612 | */ | ||
613 | struct mtd_info *mtd_ram; | ||
614 | |||
615 | mtd_ram = kmalloc(sizeof(struct mtd_info), GFP_KERNEL); | ||
616 | if (!mtd_ram) { | ||
617 | panic("axisflashmap: Couldn't allocate memory for " | ||
618 | "mtd_info!\n"); | ||
619 | } | ||
620 | |||
621 | printk(KERN_INFO "axisflashmap: Adding RAM partition for romfs, " | ||
622 | "at %u, size %u\n", | ||
623 | (unsigned) romfs_start, (unsigned) romfs_length); | ||
624 | |||
625 | err = mtdram_init_device(mtd_ram, (void *)romfs_start, | ||
626 | romfs_length, "romfs"); | ||
627 | if (err) { | ||
628 | panic("axisflashmap: Could not initialize MTD RAM " | ||
629 | "device!\n"); | ||
630 | } | ||
631 | #endif /* CONFIG_EXTRAX_VCS_SIM */ | ||
632 | |||
633 | #ifndef CONFIG_ETRAX_VCS_SIM | ||
634 | if (aux_mtd) { | 606 | if (aux_mtd) { |
635 | aux_partition.size = aux_mtd->size; | 607 | aux_partition.size = aux_mtd->size; |
636 | err = mtd_device_register(aux_mtd, &aux_partition, 1); | 608 | err = mtd_device_register(aux_mtd, &aux_partition, 1); |
@@ -639,7 +611,6 @@ static int __init init_axis_flash(void) | |||
639 | "aux mtd device!\n"); | 611 | "aux mtd device!\n"); |
640 | 612 | ||
641 | } | 613 | } |
642 | #endif /* CONFIG_EXTRAX_VCS_SIM */ | ||
643 | 614 | ||
644 | return err; | 615 | return err; |
645 | } | 616 | } |
diff --git a/arch/cris/arch-v32/drivers/pci/bios.c b/arch/cris/arch-v32/drivers/pci/bios.c index 5b1ee82f63c5..e3dfc72d0cfd 100644 --- a/arch/cris/arch-v32/drivers/pci/bios.c +++ b/arch/cris/arch-v32/drivers/pci/bios.c | |||
@@ -97,28 +97,3 @@ int pcibios_enable_device(struct pci_dev *dev, int mask) | |||
97 | pcibios_enable_irq(dev); | 97 | pcibios_enable_irq(dev); |
98 | return 0; | 98 | return 0; |
99 | } | 99 | } |
100 | |||
101 | int pcibios_assign_resources(void) | ||
102 | { | ||
103 | struct pci_dev *dev = NULL; | ||
104 | int idx; | ||
105 | struct resource *r; | ||
106 | |||
107 | while ((dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) { | ||
108 | int class = dev->class >> 8; | ||
109 | |||
110 | /* Don't touch classless devices and host bridges */ | ||
111 | if (!class || class == PCI_CLASS_BRIDGE_HOST) | ||
112 | continue; | ||
113 | |||
114 | for(idx=0; idx<6; idx++) { | ||
115 | r = &dev->resource[idx]; | ||
116 | |||
117 | if (!r->start && r->end) | ||
118 | pci_assign_resource(dev, idx); | ||
119 | } | ||
120 | } | ||
121 | return 0; | ||
122 | } | ||
123 | |||
124 | EXPORT_SYMBOL(pcibios_assign_resources); | ||