|
@@ -398,8 +398,7 @@ static int sbs_init(struct pci_dev *dev)
|
|
{
|
|
{
|
|
u8 __iomem *p;
|
|
u8 __iomem *p;
|
|
|
|
|
|
- p = ioremap_nocache(pci_resource_start(dev, 0),
|
|
|
|
- pci_resource_len(dev, 0));
|
|
|
|
|
|
+ p = pci_ioremap_bar(dev, 0);
|
|
|
|
|
|
if (p == NULL)
|
|
if (p == NULL)
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|
|
@@ -423,8 +422,7 @@ static void __devexit sbs_exit(struct pci_dev *dev)
|
|
{
|
|
{
|
|
u8 __iomem *p;
|
|
u8 __iomem *p;
|
|
|
|
|
|
- p = ioremap_nocache(pci_resource_start(dev, 0),
|
|
|
|
- pci_resource_len(dev, 0));
|
|
|
|
|
|
+ p = pci_ioremap_bar(dev, 0);
|
|
/* FIXME: What if resource_len < OCT_REG_CR_OFF */
|
|
/* FIXME: What if resource_len < OCT_REG_CR_OFF */
|
|
if (p != NULL)
|
|
if (p != NULL)
|
|
writeb(0, p + OCT_REG_CR_OFF);
|
|
writeb(0, p + OCT_REG_CR_OFF);
|