mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 00:00:00 -04:00
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>
This commit is contained in:
parent
0fef3c7680
commit
ea544aab42
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue