]> err.no Git - linux-2.6/commit
PCI: allow multiple calls to pcim_pin_device()
authorTejun Heo <htejun@gmail.com>
Sun, 25 Feb 2007 12:36:01 +0000 (04:36 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 9 Mar 2007 23:36:30 +0000 (15:36 -0800)
commit7f375f325feacd8a628e00e0d53390a4f6d8abc2
tree434d3d5b5bf75e85515b514b12e2f08205dec079
parenta967e127d0233f2472af64597de3f3920872310c
PCI: allow multiple calls to pcim_pin_device()

Sanity check in pcim_pin_device() was too restrictive in that it didn't
allow multiple calls to the function, which is against the devres
philosohpy of fire-and-forget.  Track pinned status separately and allow
pinning multiple times.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Acked-by: Ian McDonald <ian.mcdonald@jandi.co.nz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/pci.c