Commit 4bff7fd2 authored by Ivan Kokshaysky's avatar Ivan Kokshaysky Committed by Linus Torvalds

[PATCH] fixes for PCI reorg changes

There are missing #includes which will break compilation on some non-x86
platforms. With following patch this compiles and works on alpha.
parent 5d0a8965
...@@ -193,7 +193,7 @@ pcibios_align_resource(void *data, struct resource *res, ...@@ -193,7 +193,7 @@ pcibios_align_resource(void *data, struct resource *res,
#undef MB #undef MB
#undef GB #undef GB
void __init static void __init
pcibios_init(void) pcibios_init(void)
{ {
if (!alpha_mv.init_pci) if (!alpha_mv.init_pci)
...@@ -201,6 +201,8 @@ pcibios_init(void) ...@@ -201,6 +201,8 @@ pcibios_init(void)
alpha_mv.init_pci(); alpha_mv.init_pci();
} }
subsys_initcall(pcibios_init);
char * __init char * __init
pcibios_setup(char *str) pcibios_setup(char *str)
{ {
......
...@@ -9,6 +9,8 @@ ...@@ -9,6 +9,8 @@
* Copyright 1997 -- 2000 Martin Mares <mj@ucw.cz> * Copyright 1997 -- 2000 Martin Mares <mj@ucw.cz>
*/ */
#include <linux/delay.h>
#include <linux/init.h>
#include <linux/pci.h> #include <linux/pci.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/spinlock.h> #include <linux/spinlock.h>
......
#include <linux/pci.h> #include <linux/pci.h>
#include <linux/slab.h>
#include <linux/module.h> #include <linux/module.h>
/* /*
......
...@@ -2,7 +2,9 @@ ...@@ -2,7 +2,9 @@
* probe.c - PCI detection and setup code * probe.c - PCI detection and setup code
*/ */
#include <linux/init.h>
#include <linux/pci.h> #include <linux/pci.h>
#include <linux/slab.h>
#include <linux/module.h> #include <linux/module.h>
#undef DEBUG #undef DEBUG
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
* Copyright (c) 1997--1999 Martin Mares <mj@ucw.cz> * Copyright (c) 1997--1999 Martin Mares <mj@ucw.cz>
*/ */
#include <linux/init.h>
#include <linux/pci.h> #include <linux/pci.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/proc_fs.h> #include <linux/proc_fs.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment