]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
Merge master.kernel.org:/home/rmk/linux-2.6-arm
authorLinus Torvalds <torvalds@g5.osdl.org>
Tue, 4 Jul 2006 04:30:03 +0000 (21:30 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 4 Jul 2006 04:30:03 +0000 (21:30 -0700)
* master.kernel.org:/home/rmk/linux-2.6-arm:
  [ARM] Fix lh7a40x_udc.c
  [ARM] Fix warning in consistent.c
  [ARM] Fix warnings in arch/arm/kernel/setup.c
  [ARM] Fix ecard.c resource warnings.
  [ARM] Fix ISA IRQ resources
  [ARM] Fix bad asm instruction in proc-arm925.S
  [ARM] More missing proc-macros.S includes
  [ARM] 3708/2: fix SMP build after section ioremap changes

arch/arm/kernel/ecard.c
arch/arm/kernel/setup.c
arch/arm/mach-footbridge/isa-irq.c
arch/arm/mm/ioremap.c
arch/arm/mm/proc-arm1020.S
arch/arm/mm/proc-arm1020e.S
arch/arm/mm/proc-arm1022.S
arch/arm/mm/proc-arm1026.S
arch/arm/mm/proc-arm925.S
drivers/usb/gadget/lh7a40x_udc.c

index ab4ad9562eee8f08ee9047102d052f6238f6d01e..b9a74a741d005db9e02243e396b8a4403d4939b1 100644 (file)
@@ -883,7 +883,7 @@ static ssize_t ecard_show_resources(struct device *dev, struct device_attribute
        int i;
 
        for (i = 0; i < ECARD_NUM_RESOURCES; i++)
-               str += sprintf(str, "%08lx %08lx %08lx\n",
+               str += sprintf(str, "%08x %08x %08lx\n",
                                ec->resource[i].start,
                                ec->resource[i].end,
                                ec->resource[i].flags);
index 7d6a516c0b9f4db182cc1a7d6b1df57b90331758..ed1c4d62d999e4170df1de47d017da5968b1d76e 100644 (file)
@@ -344,7 +344,7 @@ static void __init setup_processor(void)
        cpu_cache = *list->cache;
 #endif
 
-       printk("CPU: %s [%08x] revision %d (ARMv%s), cr=%08x\n",
+       printk("CPU: %s [%08x] revision %d (ARMv%s), cr=%08lx\n",
               cpu_name, processor_id, (int)processor_id & 15,
               proc_arch[cpu_architecture()], cr_alignment);
 
index e1c43b331d64d357ece5282be3929cd136bfe026..87448c2d6baa192fb621047ee47d1b0e3e1133d4 100644 (file)
@@ -98,9 +98,22 @@ isa_irq_handler(unsigned int irq, struct irqdesc *desc, struct pt_regs *regs)
        desc_handle_irq(isa_irq, desc, regs);
 }
 
-static struct irqaction irq_cascade = { .handler = no_action, .name = "cascade", };
-static struct resource pic1_resource = { "pic1", 0x20, 0x3f };
-static struct resource pic2_resource = { "pic2", 0xa0, 0xbf };
+static struct irqaction irq_cascade = {
+       .handler = no_action,
+       .name = "cascade",
+};
+
+static struct resource pic1_resource = {
+       .name   = "pic1",
+       .start  = 0x20,
+       .end    = 0x3f,
+};
+
+static struct resource pic2_resource = {
+       .name   = "pic2",
+       .start  = 0xa0,
+       .end    = 0xbf,
+};
 
 void __init isa_init_irq(unsigned int host_irq)
 {
index 7eac87f05180682ea45f3db06c0bdfe59e7739f1..dba7dddfe57d365a53959c74b84a7e136781c775 100644 (file)
@@ -303,7 +303,6 @@ __ioremap_pfn(unsigned long pfn, unsigned long offset, size_t size,
        int err;
        unsigned long addr;
        struct vm_struct * area;
-       unsigned int cr = get_cr();
 
        /*
         * High mappings must be supersection aligned
@@ -317,7 +316,7 @@ __ioremap_pfn(unsigned long pfn, unsigned long offset, size_t size,
        addr = (unsigned long)area->addr;
 
 #ifndef CONFIG_SMP
-       if ((((cpu_architecture() >= CPU_ARCH_ARMv6) && (cr & CR_XP)) ||
+       if ((((cpu_architecture() >= CPU_ARCH_ARMv6) && (get_cr() & CR_XP)) ||
               cpu_is_xsc3()) &&
               !((__pfn_to_phys(pfn) | size | addr) & ~SUPERSECTION_MASK)) {
                area->flags |= VM_ARM_SECTION_MAPPING;
@@ -369,6 +368,7 @@ void __iounmap(void __iomem *addr)
 
        addr = (void __iomem *)(PAGE_MASK & (unsigned long)addr);
 
+#ifndef CONFIG_SMP
        /*
         * If this is a section based mapping we need to handle it
         * specially as the VM subysystem does not know how to handle
@@ -390,6 +390,7 @@ void __iounmap(void __iomem *addr)
                }
        }
        write_unlock(&vmlist_lock);
+#endif
 
        if (!section_mapping)
                vunmap(addr);
index 700297ae4a55c460f871be3389da3ec3ee52f651..1d8316f3cecfbe124fa6fe1ed6cdc4fa78b3206e 100644 (file)
@@ -34,6 +34,8 @@
 #include <asm/procinfo.h>
 #include <asm/ptrace.h>
 
+#include "proc-macros.S"
+
 /*
  * This is the maximum size of an area which will be invalidated
  * using the single invalidate entry instructions.  Anything larger
index 0c33a5ed5a613adf7253badcf8b331f945ca34c1..89b1d6d3d7c0fc572be129aa38361da0b2736669 100644 (file)
@@ -34,6 +34,8 @@
 #include <asm/procinfo.h>
 #include <asm/ptrace.h>
 
+#include "proc-macros.S"
+
 /*
  * This is the maximum size of an area which will be invalidated
  * using the single invalidate entry instructions.  Anything larger
index 566a5565307241313e4b244bc133df0c7755b4da..a089528e6bce24e793db1a3b09f35ebdb21b131f 100644 (file)
@@ -23,6 +23,8 @@
 #include <asm/procinfo.h>
 #include <asm/ptrace.h>
 
+#include "proc-macros.S"
+
 /*
  * This is the maximum size of an area which will be invalidated
  * using the single invalidate entry instructions.  Anything larger
index 6ea76321d0df429741b8e968041303c58a58adfa..d6d84d92c7c7208e832b6c6ea0673077603b9bd1 100644 (file)
@@ -23,6 +23,8 @@
 #include <asm/procinfo.h>
 #include <asm/ptrace.h>
 
+#include "proc-macros.S"
+
 /*
  * This is the maximum size of an area which will be invalidated
  * using the single invalidate entry instructions.  Anything larger
index ad15f8503d51b9610bc7575b6254fc5f43f57f76..8d9a9f93b011cc914d407b1b5646289d9eb31483 100644 (file)
@@ -454,7 +454,8 @@ __arm925_setup:
        mcr     p15, 7, r0, c15, c0, 0
 #endif
 
-       adr     r5, {r5, r6}
+       adr     r5, arm925_crval
+       ldmia   r5, {r5, r6}
        mrc     p15, 0, r0, c1, c0              @ get control register v4
        bic     r0, r0, r5
        orr     r0, r0, r6
index bb22b7e82877adbc236554f03d863dbc0250750d..36db7257937728e8d399bf13576c03d6c305c7a5 100644 (file)
@@ -2143,7 +2143,7 @@ static int lh7a40x_udc_remove(struct platform_device *pdev)
 
 static struct platform_driver udc_driver = {
        .probe = lh7a40x_udc_probe,
-       .remove = lh7a40x_udc_remove
+       .remove = lh7a40x_udc_remove,
            /* FIXME power management support */
            /* .suspend = ... disable UDC */
            /* .resume = ... re-enable UDC */