diff options
author | Geliang Tang <geliangtang@163.com> | 2016-03-18 13:20:59 +1100 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2016-04-07 19:37:34 +0300 |
commit | ea544aab42dbf35c7b8e80f931db400f4b5add60 (patch) | |
tree | 26b6adb365aa1581532d17c220b83094a272bc62 /drivers/net/wireless | |
parent | 0fef3c768037169f656fc4ae89cf88ff7175e586 (diff) | |
download | blackbird-op-linux-ea544aab42dbf35c7b8e80f931db400f4b5add60.tar.gz blackbird-op-linux-ea544aab42dbf35c7b8e80f931db400f4b5add60.zip |
ipw2x00: use to_pci_dev()
Use to_pci_dev() instead of open-coding it.
Signed-off-by: Geliang Tang <geliangtang@163.com>
Signed-off-by: Julian Calaby <julian.calaby@gmail.com>
Acked-by: Stanislav Yakovlev <stas.yakovlev@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/intel/ipw2x00/ipw2100.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/intel/ipw2x00/ipw2100.c b/drivers/net/wireless/intel/ipw2x00/ipw2100.c index f93a7f71c047..717320b17622 100644 --- a/drivers/net/wireless/intel/ipw2x00/ipw2100.c +++ b/drivers/net/wireless/intel/ipw2x00/ipw2100.c @@ -3521,7 +3521,7 @@ static void ipw2100_msg_free(struct ipw2100_priv *priv) static ssize_t show_pci(struct device *d, struct device_attribute *attr, char *buf) { - struct pci_dev *pci_dev = container_of(d, struct pci_dev, dev); + struct pci_dev *pci_dev = to_pci_dev(d); char *out = buf; int i, j; u32 val; |