diff options
author | Andrey Smirnov <andrew.smirnov@gmail.com> | 2019-02-11 22:40:15 -0800 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-02-18 14:25:51 +0100 |
commit | 0341d1e8d343e70ee2d0df463e612181df3db719 (patch) | |
tree | 4abf7fb031b63b134c1f409e465a12388b6c88ef /include/linux | |
parent | d1bebc03b3005b33da3d1541782bb037974d1486 (diff) | |
download | barebox-0341d1e8d343e70ee2d0df463e612181df3db719.tar.gz barebox-0341d1e8d343e70ee2d0df463e612181df3db719.tar.xz |
PCI: Fix to_pci_dev() macro
Rename argument of to_pci_dev() to avoid replacing both first and
third parameters passed to container_of. All of the current users of
the macro invoike it with a varible named "dev", so erroneous
replacement doesn't cause any harm, however trying to pass variable
with any other name will result in compilation failure.
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/pci.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index 478f10207a..0022922fc1 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -113,7 +113,7 @@ struct pci_dev { */ unsigned long base_address[6]; }; -#define to_pci_dev(dev) container_of(dev, struct pci_dev, dev) +#define to_pci_dev(d) container_of(d, struct pci_dev, dev) enum { PCI_BUS_RESOURCE_IO = 0, |