Commit 6b82b3e4 authored by Anton Vorontsov's avatar Anton Vorontsov Committed by Paul Mackerras

powerpc: Remove `have_of' global variable

The `have_of' variable is a relic from the arch/ppc time, it isn't
useful nowadays.
Signed-off-by: default avatarAnton Vorontsov <avorontsov@ru.mvista.com>
Acked-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 0efbb57e
...@@ -69,8 +69,6 @@ extern int _prep_type; ...@@ -69,8 +69,6 @@ extern int _prep_type;
#ifdef __KERNEL__ #ifdef __KERNEL__
extern int have_of;
struct task_struct; struct task_struct;
void start_thread(struct pt_regs *regs, unsigned long fdptr, unsigned long sp); void start_thread(struct pt_regs *regs, unsigned long fdptr, unsigned long sp);
void release_thread(struct task_struct *); void release_thread(struct task_struct *);
......
...@@ -160,8 +160,6 @@ EXPORT_SYMBOL(pci_domain_nr); ...@@ -160,8 +160,6 @@ EXPORT_SYMBOL(pci_domain_nr);
*/ */
struct pci_controller* pci_find_hose_for_OF_device(struct device_node* node) struct pci_controller* pci_find_hose_for_OF_device(struct device_node* node)
{ {
if (!have_of)
return NULL;
while(node) { while(node) {
struct pci_controller *hose, *tmp; struct pci_controller *hose, *tmp;
list_for_each_entry_safe(hose, tmp, &hose_list, list_node) list_for_each_entry_safe(hose, tmp, &hose_list, list_node)
......
...@@ -266,9 +266,6 @@ pci_busdev_to_OF_node(struct pci_bus *bus, int devfn) ...@@ -266,9 +266,6 @@ pci_busdev_to_OF_node(struct pci_bus *bus, int devfn)
{ {
struct device_node *parent, *np; struct device_node *parent, *np;
if (!have_of)
return NULL;
pr_debug("pci_busdev_to_OF_node(%d,0x%x)\n", bus->number, devfn); pr_debug("pci_busdev_to_OF_node(%d,0x%x)\n", bus->number, devfn);
parent = scan_OF_for_pci_bus(bus); parent = scan_OF_for_pci_bus(bus);
if (parent == NULL) if (parent == NULL)
...@@ -309,8 +306,6 @@ pci_device_from_OF_node(struct device_node* node, u8* bus, u8* devfn) ...@@ -309,8 +306,6 @@ pci_device_from_OF_node(struct device_node* node, u8* bus, u8* devfn)
struct pci_controller* hose; struct pci_controller* hose;
struct pci_dev* dev = NULL; struct pci_dev* dev = NULL;
if (!have_of)
return -ENODEV;
/* Make sure it's really a PCI device */ /* Make sure it's really a PCI device */
hose = pci_find_hose_for_OF_device(node); hose = pci_find_hose_for_OF_device(node);
if (!hose || !hose->dn) if (!hose || !hose->dn)
...@@ -431,7 +426,7 @@ static int __init pcibios_init(void) ...@@ -431,7 +426,7 @@ static int __init pcibios_init(void)
* numbers vs. kernel bus numbers since we may have to * numbers vs. kernel bus numbers since we may have to
* remap them. * remap them.
*/ */
if (pci_assign_all_buses && have_of) if (pci_assign_all_buses)
pcibios_make_OF_bus_map(); pcibios_make_OF_bus_map();
/* Call common code to handle resource allocation */ /* Call common code to handle resource allocation */
......
...@@ -53,8 +53,6 @@ unsigned long ISA_DMA_THRESHOLD; ...@@ -53,8 +53,6 @@ unsigned long ISA_DMA_THRESHOLD;
unsigned int DMA_MODE_READ; unsigned int DMA_MODE_READ;
unsigned int DMA_MODE_WRITE; unsigned int DMA_MODE_WRITE;
int have_of = 1;
#ifdef CONFIG_VGA_CONSOLE #ifdef CONFIG_VGA_CONSOLE
unsigned long vgacon_remap_base; unsigned long vgacon_remap_base;
EXPORT_SYMBOL(vgacon_remap_base); EXPORT_SYMBOL(vgacon_remap_base);
......
...@@ -70,7 +70,6 @@ ...@@ -70,7 +70,6 @@
#define DBG(fmt...) #define DBG(fmt...)
#endif #endif
int have_of = 1;
int boot_cpuid = 0; int boot_cpuid = 0;
u64 ppc64_pft_size; u64 ppc64_pft_size;
......
...@@ -218,8 +218,7 @@ void proc_device_tree_add_node(struct device_node *np, ...@@ -218,8 +218,7 @@ void proc_device_tree_add_node(struct device_node *np,
void __init proc_device_tree_init(void) void __init proc_device_tree_init(void)
{ {
struct device_node *root; struct device_node *root;
if ( !have_of )
return;
proc_device_tree = proc_mkdir("device-tree", NULL); proc_device_tree = proc_mkdir("device-tree", NULL);
if (proc_device_tree == 0) if (proc_device_tree == 0)
return; return;
......
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