]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
rtc: release correct region in error path
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Thu, 15 Nov 2007 00:59:56 +0000 (16:59 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 15 Nov 2007 02:45:41 +0000 (18:45 -0800)
commit4c06be10c790008aa2b2d19df2872ff39990b7bd
tree859d05beb7800749c6019e4beb61ecd893916dbe
parentc06a018fa5362fa9ed0768bd747c0fab26bc8849
rtc: release correct region in error path

The misc_register() error path always released an I/O port region,
even if the region was memory-mapped (only mips uses memory-mapped RTC,
as far as I can see).

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: David Brownell <david-b@pacbell.net>
Acked-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/rtc.c