Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge branch 'merge-powerpc' of git://git.secretlab.ca/git/linux-2.6

* 'merge-powerpc' of git://git.secretlab.ca/git/linux-2.6:
powerpc/5200: tighten up ac97 reset timing
powerpc/5200: efika.c: Add of_node_put to avoid memory leak
powerpc/512x: fix clk_get() return value

+13 -6
+1 -1
arch/powerpc/platforms/512x/clock.c
··· 57 57 int id_match = 0; 58 58 59 59 if (dev == NULL || id == NULL) 60 - return NULL; 60 + return clk; 61 61 62 62 mutex_lock(&clocks_mutex); 63 63 list_for_each_entry(p, &clocks, node) {
+6 -3
arch/powerpc/platforms/52xx/efika.c
··· 99 99 if (bus_range == NULL || len < 2 * sizeof(int)) { 100 100 printk(KERN_WARNING EFIKA_PLATFORM_NAME 101 101 ": Can't get bus-range for %s\n", pcictrl->full_name); 102 - return; 102 + goto out_put; 103 103 } 104 104 105 105 if (bus_range[1] == bus_range[0]) ··· 111 111 printk(" controlled by %s\n", pcictrl->full_name); 112 112 printk("\n"); 113 113 114 - hose = pcibios_alloc_controller(of_node_get(pcictrl)); 114 + hose = pcibios_alloc_controller(pcictrl); 115 115 if (!hose) { 116 116 printk(KERN_WARNING EFIKA_PLATFORM_NAME 117 117 ": Can't allocate PCI controller structure for %s\n", 118 118 pcictrl->full_name); 119 - return; 119 + goto out_put; 120 120 } 121 121 122 122 hose->first_busno = bus_range[0]; ··· 124 124 hose->ops = &rtas_pci_ops; 125 125 126 126 pci_process_bridge_OF_ranges(hose, pcictrl, 0); 127 + return; 128 + out_put: 129 + of_node_put(pcictrl); 127 130 } 128 131 129 132 #else
+6 -2
arch/powerpc/platforms/52xx/mpc52xx_common.c
··· 325 325 clrbits32(&simple_gpio->simple_dvo, sync | out); 326 326 clrbits8(&wkup_gpio->wkup_dvo, reset); 327 327 328 - /* wait at lease 1 us */ 329 - udelay(2); 328 + /* wait for 1 us */ 329 + udelay(1); 330 330 331 331 /* Deassert reset */ 332 332 setbits8(&wkup_gpio->wkup_dvo, reset); 333 + 334 + /* wait at least 200ns */ 335 + /* 7 ~= (200ns * timebase) / ns2sec */ 336 + __delay(7); 333 337 334 338 /* Restore pin-muxing */ 335 339 out_be32(&simple_gpio->port_config, mux);