Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752034AbdGCFzM (ORCPT ); Mon, 3 Jul 2017 01:55:12 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:9097 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1750784AbdGCFzL (ORCPT ); Mon, 3 Jul 2017 01:55:11 -0400 From: Ryder Lee To: Bjorn Helgaas CC: , , , Ryder Lee Subject: [PATCH] PCI: mediatek: Remove unnecessary PCI_REASSIGN_* flags Date: Mon, 3 Jul 2017 13:55:00 +0800 Message-ID: <1499061300-55951-1-git-send-email-ryder.lee@mediatek.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 758 Lines: 22 The PCI_REASSIGN_ALL_RSRC and PCI_REASSIGN_ALL_BUS flags are not needed, since we should automatically assign resources if the firmware hasn't done it. Signed-off-by: Ryder Lee --- drivers/pci/host/pcie-mediatek.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pci/host/pcie-mediatek.c b/drivers/pci/host/pcie-mediatek.c index 51c6118..5a9d858 100644 --- a/drivers/pci/host/pcie-mediatek.c +++ b/drivers/pci/host/pcie-mediatek.c @@ -478,7 +478,6 @@ static int mtk_pcie_register_host(struct pci_host_bridge *host) struct pci_bus *child; int err; - pci_add_flags(PCI_REASSIGN_ALL_RSRC | PCI_REASSIGN_ALL_BUS); host->busnr = pcie->busn.start; host->dev.parent = pcie->dev; host->ops = &mtk_pcie_ops; -- 1.9.1