From: Shawn Guo Date: Sun, 1 Jul 2018 03:54:44 +0000 (+0800) Subject: PCI: imx6: Drop unnecessary root_bus_nr setting X-Git-Tag: v4.19~393^2~5^2~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=39f712e989c5e591c58b65b62981b85027ba3103;p=platform%2Fkernel%2Flinux-rpi3.git PCI: imx6: Drop unnecessary root_bus_nr setting Function dw_pcie_host_init() already initializes the root_bus_nr field of 'struct pcie_port', so the -1 assignment prior to calling dw_pcie_host_init() in platform specific driver is not really needed. Drop it. Signed-off-by: Shawn Guo Signed-off-by: Lorenzo Pieralisi Reviewed-by: Lucas Stach Cc: Richard Zhu Cc: Lucas Stach --- diff --git a/drivers/pci/controller/dwc/pci-imx6.c b/drivers/pci/controller/dwc/pci-imx6.c index 80f6046..4a9a673 100644 --- a/drivers/pci/controller/dwc/pci-imx6.c +++ b/drivers/pci/controller/dwc/pci-imx6.c @@ -667,7 +667,6 @@ static int imx6_add_pcie_port(struct imx6_pcie *imx6_pcie, } } - pp->root_bus_nr = -1; pp->ops = &imx6_pcie_host_ops; ret = dw_pcie_host_init(pp);