diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-03 11:52:26 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-03 11:52:26 -0400 |
commit | ccaa36f73544163ef6e15eb29a620130755f6001 (patch) | |
tree | b5cf50592c45e25edbd66fea451e6941e455fa83 /drivers/macintosh | |
parent | b4a9071af62f95dc6d22040a0b37ac7225ce4d54 (diff) | |
parent | 5e980823581682d1566e7b5089cf827ddd5f3c94 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc
* git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc: (29 commits)
[POWERPC] Fix rheap alignment problem
[POWERPC] Use check_legacy_ioport() for ISAPnP
[POWERPC] Avoid NULL pointer in gpio1_interrupt
[POWERPC] Enable generic rtc hook for the MPC8349 mITX
[POWERPC] Add powerpc get/set_rtc_time interface to new generic rtc class
[POWERPC] Create a "wrapper" script and use it in arch/powerpc/boot
[POWERPC] fix spin lock nesting in hvc_iseries
[POWERPC] EEH failure to mark pci slot as frozen.
[POWERPC] update powerpc defconfig files after libata kconfig breakage
[POWERPC] enable sysrq in pmac32_defconfig
[POWERPC] UPIO_TSI cleanup
[POWERPC] rewrite mkprep and mkbugboot in sane C
[POWERPC] maple/pci iomem annotations
[POWERPC] powerpc oprofile __user annotations
[POWERPC] cell spufs iomem annotations
[POWERPC] NULL noise removal: spufs
[POWERPC] ppc math-emu needs -fno-builtin-fabs for math.c and fabs.c
[POWERPC] update mpc8349_itx_defconfig and remove some debug settings
[POWERPC] Always call cede in pseries dedicated idle loop
[POWERPC] Fix loop logic in irq_alloc_virt()
...
Diffstat (limited to 'drivers/macintosh')
-rw-r--r-- | drivers/macintosh/via-pmu.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/macintosh/via-pmu.c b/drivers/macintosh/via-pmu.c index 80b89649e676..4f04fd0956a0 100644 --- a/drivers/macintosh/via-pmu.c +++ b/drivers/macintosh/via-pmu.c | |||
@@ -336,8 +336,10 @@ int __init find_via_pmu(void) | |||
336 | if (gaddr != OF_BAD_ADDR) | 336 | if (gaddr != OF_BAD_ADDR) |
337 | gpio_reg = ioremap(gaddr, 0x10); | 337 | gpio_reg = ioremap(gaddr, 0x10); |
338 | } | 338 | } |
339 | if (gpio_reg == NULL) | 339 | if (gpio_reg == NULL) { |
340 | printk(KERN_ERR "via-pmu: Can't find GPIO reg !\n"); | 340 | printk(KERN_ERR "via-pmu: Can't find GPIO reg !\n"); |
341 | goto fail_gpio; | ||
342 | } | ||
341 | } else | 343 | } else |
342 | pmu_kind = PMU_UNKNOWN; | 344 | pmu_kind = PMU_UNKNOWN; |
343 | 345 | ||
@@ -365,6 +367,9 @@ int __init find_via_pmu(void) | |||
365 | return 1; | 367 | return 1; |
366 | fail: | 368 | fail: |
367 | of_node_put(vias); | 369 | of_node_put(vias); |
370 | iounmap(gpio_reg); | ||
371 | gpio_reg = NULL; | ||
372 | fail_gpio: | ||
368 | vias = NULL; | 373 | vias = NULL; |
369 | return 0; | 374 | return 0; |
370 | } | 375 | } |