]> bbs.cooldavid.org Git - net-next-2.6.git/commit
video: backlight/progear, fix pci device refcounting
authorJiri Slaby <jslaby@suse.cz>
Tue, 2 Feb 2010 22:44:50 +0000 (14:44 -0800)
committerRichard Purdie <rpurdie@linux.intel.com>
Tue, 16 Mar 2010 19:47:54 +0000 (19:47 +0000)
commita4ebb780e194e8751dc22deeabcddd3fdc8f18f0
tree490cac976b02f53ac5596d66ba6adaffa2e698ba
parentc3cf2e44d3bbc694eccef33b0f2fe8e2d89baae7
video: backlight/progear, fix pci device refcounting

Stanse found an ommitted pci_dev_puts on error path in progearbl_probe.
pmu_dev and sb_dev are gotten, but never put when
backlight_device_register fails.

So unify fail paths and put the devs when the failure occurs.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
drivers/video/backlight/progear_bl.c