Re: [PATCH v9 23/30] PCI/mvebu: Use pci_common_init_dev() to simplify code

2015-04-08 Thread Yijing Wang
> 2 months ago, Thomas Petazzoni was concerned about the removal of > mvebu_pcie_scan_bus(). So I dig the archives of the discussion > surrounding the pcie-mvebu drive. I found that the main purpose > of using this function was to allow to pass "struct device *" pointer. > > Thanks to the introduc

Re: [PATCH v9 23/30] PCI/mvebu: Use pci_common_init_dev() to simplify code

2015-04-08 Thread Gregory CLEMENT
Hi Yijing, On 03/04/2015 11:25, Yijing Wang wrote: > Mvebu_pcie_scan_bus() is not necessary, we could use > pci_common_init_dev() instead of pci_common_init(), > and pass the device pointer as the parent. Then > pci_scan_root_bus() will be called to scan the pci busses. > 2 months ago, Thomas Pe

[PATCH v9 23/30] PCI/mvebu: Use pci_common_init_dev() to simplify code

2015-04-03 Thread Yijing Wang
Mvebu_pcie_scan_bus() is not necessary, we could use pci_common_init_dev() instead of pci_common_init(), and pass the device pointer as the parent. Then pci_scan_root_bus() will be called to scan the pci busses. Signed-off-by: Yijing Wang CC: Thomas Petazzoni CC: Jason Cooper --- drivers/pci/h