Merge ../powerpc-merge
authorPaul Mackerras <paulus@samba.org>
Fri, 10 Feb 2006 05:51:29 +0000 (16:51 +1100)
committerPaul Mackerras <paulus@samba.org>
Fri, 10 Feb 2006 05:51:29 +0000 (16:51 +1100)
1  2 
arch/powerpc/platforms/powermac/setup.c
arch/powerpc/sysdev/dart_iommu.c

  
  #undef SHOW_GATWICK_IRQS
  
- unsigned char drive_info;
  int ppc_override_l2cr = 0;
  int ppc_override_l2cr_value;
  int has_l2cache = 0;
  
 -int pmac_newworld = 1;
 +int pmac_newworld;
  
  static int current_root_goodness = -1;
  
 -extern int pmac_newworld;
  extern struct machdep_calls pmac_md;
  
  #define DEFAULT_ROOT_DEVICE Root_SDA1 /* sda1 - slightly silly choice */
@@@ -309,10 -308,9 +307,10 @@@ static void __init pmac_setup_arch(void
        for (ic = NULL; (ic = of_find_all_nodes(ic)) != NULL; )
                if (get_property(ic, "interrupt-controller", NULL))
                        break;
 -      pmac_newworld = (ic != NULL);
 -      if (ic)
 +      if (ic) {
 +              pmac_newworld = 1;
                of_node_put(ic);
 +      }
  
        /* Lookup PCI hosts */
        pmac_pci_init();
@@@ -59,7 -59,7 +59,7 @@@ static unsigned long dart_tablesize
  static u32 *dart_vbase;
  
  /* Mapped base address for the dart */
- static unsigned int *__iomem dart;
+ static unsigned int __iomem *dart;
  
  /* Dummy val that entries are set to when unused */
  static unsigned int dart_emptyval;
@@@ -194,6 -194,8 +194,6 @@@ static int dart_init(struct device_nod
         * prefetching into invalid pages and corrupting data
         */
        tmp = lmb_alloc(DART_PAGE_SIZE, DART_PAGE_SIZE);
 -      if (!tmp)
 -              panic("DART: Cannot allocate spare page!");
        dart_emptyval = DARTMAP_VALID | ((tmp >> DART_PAGE_SHIFT) &
                                         DARTMAP_RPNMASK);