|
@@ -16,6 +16,7 @@
|
|
|
#include <linux/of.h>
|
|
|
#include <linux/slab.h>
|
|
|
#include <linux/export.h>
|
|
|
+#include <linux/syscalls.h>
|
|
|
|
|
|
#include <asm/processor.h>
|
|
|
#include <asm/io.h>
|
|
@@ -283,7 +284,8 @@ pci_bus_to_hose(int bus)
|
|
|
* Note that the returned IO or memory base is a physical address
|
|
|
*/
|
|
|
|
|
|
-long sys_pciconfig_iobase(long which, unsigned long bus, unsigned long devfn)
|
|
|
+SYSCALL_DEFINE3(pciconfig_iobase, long, which,
|
|
|
+ unsigned long, bus, unsigned long, devfn)
|
|
|
{
|
|
|
struct pci_controller* hose;
|
|
|
long result = -EOPNOTSUPP;
|
|
@@ -307,5 +309,3 @@ long sys_pciconfig_iobase(long which, unsigned long bus, unsigned long devfn)
|
|
|
|
|
|
return result;
|
|
|
}
|
|
|
-
|
|
|
-
|