pci: use pci_ioremap_bar() in drivers/i2c
PATCH 1/1 pci: use pci_ioremap_bar() in drivers/i2c
Quoted 1 line
From
2642176b21b402e7f1ea7697ad2659d0e7e59f6eMon Sep 17 00:00:00 2001
From: Arjan van de Ven <arjan-VuQAYsv1563Yd54FQh9/[email protected]>
Date: Sun, 28 Sep 2008 16:13:48 -0700
Subject: [PATCH] pci: use pci_ioremap_bar() in drivers/i2c
Use the newly introduced pci_ioremap_bar() function in drivers/i2c. pci_ioremap_bar() just takes a pci device and a bar number, with the goal of making it really hard to get wrong, while also having a central place to stick sanity checks.
--- drivers/i2c/busses/i2c-hydra.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/i2c/busses/i2c-hydra.c +1 -1
@@ -123,7 +123,7 @@ static int __devinit hydra_probe(struct pci_dev *dev, hydra_adap.name))return -EBUSY ; - hydra_bit_data.data =ioremap (base,pci_resource_len (dev,0 )); + hydra_bit_data.data =pci_ioremap_bar (dev,0 );if (hydra_bit_data.data ==NULL ) {release_mem_region (base+offsetof(struct Hydra , CachePD),4 );return -ENODEV ;
Signature · 13 lines
1.5.5.1 -- Arjan van de Ven Intel Open Source Technology Centre For development, discussion and tips for power savings, visit http://www.lesswatts.org _______________________________________________ i2c mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/i2c
A message that is not in the archive (sent off-list or not yet received): [email protected]
Jean Delvare
AppliedHi Arjen,
Quoted 21 lines · Arjan van de Ven
From
2642176b21b402e7f1ea7697ad2659d0e7e59f6eMon Sep 17 00:00:00 2001
From: Arjan van de Ven <arjan-VuQAYsv1563Yd54FQh9/[email protected]>
Date: Sun, 28 Sep 2008 16:13:48 -0700
Subject: [PATCH] pci: usepci_ioremap_bar()indrivers/i2cUse the newly introduced
pci_ioremap_bar()function indrivers/i2c.pci_ioremap_bar()just takes a pci device and a bar number, with the goal of making it really hard to get wrong, while also having a central place to stick sanity checks.--- drivers/i2c/busses/i2c-hydra.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)drivers/i2c/busses/i2c-hydra.c +0
-0
drivers/i2c/busses/i2c-hydra.c static int __devinit hydra_probe(struct pci_dev *dev, · line 129
Quoted 8 lines
drivers/i2c/busses/i2c-hydra.c +1
-1@@ -123,7 +123,7 @@ static int __devinit hydra_probe(struct pci_dev *dev, hydra_adap.name))return -EBUSY ; - hydra_bit_data.data =ioremap (base,pci_resource_len (dev,0 )); + hydra_bit_data.data =pci_ioremap_bar (dev,0 );if (hydra_bit_data.data ==NULL ) {release_mem_region (base+offsetof(struct Hydra , CachePD),4 );return -ENODEV ;
Applied, thanks.
Signature · 6 lines
Jean Delvare _______________________________________________ i2c mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/i2c