Commit e9966ff8 authored by Stephen Rothwell's avatar Stephen Rothwell Committed by Paul Mackerras

[POWERPC] iSeries: fix viopath initialisation

/proc/iSeries/config should only be created if we are running on legacy
iSeries.
Signed-off-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 13d2c9bb
...@@ -42,6 +42,7 @@ ...@@ -42,6 +42,7 @@
#include <asm/system.h> #include <asm/system.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include <asm/prom.h> #include <asm/prom.h>
#include <asm/firmware.h>
#include <asm/iseries/hv_types.h> #include <asm/iseries/hv_types.h>
#include <asm/iseries/hv_lp_event.h> #include <asm/iseries/hv_lp_event.h>
#include <asm/iseries/hv_lp_config.h> #include <asm/iseries/hv_lp_config.h>
...@@ -183,6 +184,9 @@ static int __init vio_proc_init(void) ...@@ -183,6 +184,9 @@ static int __init vio_proc_init(void)
{ {
struct proc_dir_entry *e; struct proc_dir_entry *e;
if (!firmware_has_feature(FW_FEATURE_ISERIES))
return 0;
e = create_proc_entry("iSeries/config", 0, NULL); e = create_proc_entry("iSeries/config", 0, NULL);
if (e) if (e)
e->proc_fops = &proc_viopath_operations; e->proc_fops = &proc_viopath_operations;
......
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