[alpha] assume we have __NR_pciconfig_iobase
The code path if we didn't have support has been broken since before we switched to git. The pciconfig_iobase syscall has been supported since 2000. Signed-off-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
46785c04bc
commit
5e762f0e2f
|
@ -138,16 +138,12 @@ long (*_iobase)(unsigned, int, int, int) = _alpha_iobase_query;
|
||||||
static long
|
static long
|
||||||
_alpha_iobase(unsigned flags, int hose, int bus, int devfn)
|
_alpha_iobase(unsigned flags, int hose, int bus, int devfn)
|
||||||
{
|
{
|
||||||
#ifdef __NR_pciconfig_iobase
|
|
||||||
if (bus < 0) {
|
if (bus < 0) {
|
||||||
bus = hose;
|
bus = hose;
|
||||||
flags |= IOBASE_FROM_HOSE;
|
flags |= IOBASE_FROM_HOSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
return syscall(__NR_pciconfig_iobase, flags, bus, devfn);
|
return syscall(__NR_pciconfig_iobase, flags, bus, devfn);
|
||||||
#else
|
|
||||||
return -ENOSYS
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static long
|
static long
|
||||||
|
|
Loading…
Reference in New Issue