sh: pci: Kill off dead references to is_pci_ioaddr and friends.
Some old boards are still using this in their I/O routines, kill it off. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
@@ -36,8 +36,6 @@ unsigned char snapgear_inb(unsigned long port)
|
||||
{
|
||||
if (PXSEG(port))
|
||||
return *(volatile unsigned char *)port;
|
||||
else if (is_pci_ioaddr(port))
|
||||
return *(volatile unsigned char *)pci_ioaddr(port);
|
||||
else
|
||||
return (*port2adr(port)) & 0xff;
|
||||
}
|
||||
@@ -48,8 +46,6 @@ unsigned char snapgear_inb_p(unsigned long port)
|
||||
|
||||
if (PXSEG(port))
|
||||
v = *(volatile unsigned char *)port;
|
||||
else if (is_pci_ioaddr(port))
|
||||
v = *(volatile unsigned char *)pci_ioaddr(port);
|
||||
else
|
||||
v = (*port2adr(port))&0xff;
|
||||
ctrl_delay();
|
||||
@@ -60,8 +56,6 @@ unsigned short snapgear_inw(unsigned long port)
|
||||
{
|
||||
if (PXSEG(port))
|
||||
return *(volatile unsigned short *)port;
|
||||
else if (is_pci_ioaddr(port))
|
||||
return *(volatile unsigned short *)pci_ioaddr(port);
|
||||
else if (port >= 0x2000)
|
||||
return *port2adr(port);
|
||||
else
|
||||
@@ -73,8 +67,6 @@ unsigned int snapgear_inl(unsigned long port)
|
||||
{
|
||||
if (PXSEG(port))
|
||||
return *(volatile unsigned long *)port;
|
||||
else if (is_pci_ioaddr(port))
|
||||
return *(volatile unsigned int *)pci_ioaddr(port);
|
||||
else if (port >= 0x2000)
|
||||
return *port2adr(port);
|
||||
else
|
||||
@@ -87,8 +79,6 @@ void snapgear_outb(unsigned char value, unsigned long port)
|
||||
|
||||
if (PXSEG(port))
|
||||
*(volatile unsigned char *)port = value;
|
||||
else if (is_pci_ioaddr(port))
|
||||
*((unsigned char*)pci_ioaddr(port)) = value;
|
||||
else
|
||||
*(port2adr(port)) = value;
|
||||
}
|
||||
@@ -97,8 +87,6 @@ void snapgear_outb_p(unsigned char value, unsigned long port)
|
||||
{
|
||||
if (PXSEG(port))
|
||||
*(volatile unsigned char *)port = value;
|
||||
else if (is_pci_ioaddr(port))
|
||||
*((unsigned char*)pci_ioaddr(port)) = value;
|
||||
else
|
||||
*(port2adr(port)) = value;
|
||||
ctrl_delay();
|
||||
@@ -108,8 +96,6 @@ void snapgear_outw(unsigned short value, unsigned long port)
|
||||
{
|
||||
if (PXSEG(port))
|
||||
*(volatile unsigned short *)port = value;
|
||||
else if (is_pci_ioaddr(port))
|
||||
*((unsigned short *)pci_ioaddr(port)) = value;
|
||||
else if (port >= 0x2000)
|
||||
*port2adr(port) = value;
|
||||
else
|
||||
@@ -120,8 +106,6 @@ void snapgear_outl(unsigned int value, unsigned long port)
|
||||
{
|
||||
if (PXSEG(port))
|
||||
*(volatile unsigned long *)port = value;
|
||||
else if (is_pci_ioaddr(port))
|
||||
*((unsigned long*)pci_ioaddr(port)) = value;
|
||||
else
|
||||
maybebadio(port);
|
||||
}
|
||||
|
Reference in New Issue
Block a user