PCI: portdrv: cleanup pcie_device registration
authorKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Wed, 25 Nov 2009 12:01:28 +0000 (21:01 +0900)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 4 Dec 2009 23:55:18 +0000 (15:55 -0800)
commit52a0f24beabe9e89223e367c65a0156dff17265c
treed6249304150228dcb15052781cb9f26afae05be4
parent898294c97500b1cdff6edce52fd34e024eb070ec
PCI: portdrv: cleanup pcie_device registration

In the current port bus driver implementation, pcie_device allocation,
initialization and registration are done in separated functions. Doing
those in one function make the code simple and easier to read.

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