Commit ea544aab authored by Geliang Tang's avatar Geliang Tang Committed by Kalle Valo

ipw2x00: use to_pci_dev()

Use to_pci_dev() instead of open-coding it.
Signed-off-by: default avatarGeliang Tang <geliangtang@163.com>
Signed-off-by: default avatarJulian Calaby <julian.calaby@gmail.com>
Acked-by: default avatarStanislav Yakovlev <stas.yakovlev@gmail.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 0fef3c76
...@@ -3521,7 +3521,7 @@ static void ipw2100_msg_free(struct ipw2100_priv *priv) ...@@ -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, static ssize_t show_pci(struct device *d, struct device_attribute *attr,
char *buf) 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; char *out = buf;
int i, j; int i, j;
u32 val; u32 val;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment