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@xxxxxxxxx>
---
It was an actual bug in pcim_pin_device() implementation. Thanks for
spotting this. :-)
Ian McDonald, please verify your warning goes away with this patch.
Acked-by: Ian McDonald <ian.mcdonald@xxxxxxxxxxx>
Greg, please forward this patch upstream once Ian acks it.