Skip to content

Commit

Permalink
Added code to print out pci device node.
Browse files Browse the repository at this point in the history
Signed-off-by: David Lin <dlin@marvell.com>
  • Loading branch information
yuhhaurlin committed Dec 5, 2017
1 parent af210f0 commit 619e632
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion hif/pcie/pcie.c
Expand Up @@ -510,8 +510,12 @@ static struct device_node *pcie_get_device_node(struct ieee80211_hw *hw)
{
struct mwl_priv *priv = hw->priv;
struct pcie_priv *pcie_priv = priv->hif.priv;
struct device_node *dev_node;

return pci_bus_to_OF_node(pcie_priv->pdev->bus);
dev_node = pci_bus_to_OF_node(pcie_priv->pdev->bus);
wiphy_info(priv->hw->wiphy, "device node: %s\n", dev_node->full_name);

return dev_node;
}

static void pcie_get_survey(struct ieee80211_hw *hw,
Expand Down

0 comments on commit 619e632

Please sign in to comment.