]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
PCI hotplug: fix get_##name return value problem
authorKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Mon, 29 Sep 2008 08:37:05 +0000 (17:37 +0900)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Mon, 20 Oct 2008 18:01:50 +0000 (11:01 -0700)
commitbd1d9855be3ab8a5c2b31053d464b7fe63e6963b
treeafcef4f9a3716fa7c30f8aa1c234f7690f845926
parente5665a45fa28d0114f61b5d534a3b2678592219d
PCI hotplug: fix get_##name return value problem

The commit 356a9d6f3dd283f83861adf1ac909879f0e66411 (PCI: fix hotplug
get_##name return value problem) doesn't seem to be merged properly.
Because of this, PCI hotplug no longer works (Read/Write PCI hotplug
files always returns -ENODEV).

This patch fixes wrong check of try_module_get() return value check in
get_##name().

Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/hotplug/pci_hotplug_core.c