mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 05:48:40 +00:00
[POWERPC] iSeries: fix viotape init
Only initialise viotape on legacy iSeries. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
parent
fb8b500784
commit
fd38451f15
1 changed files with 4 additions and 1 deletions
|
@ -49,7 +49,7 @@
|
|||
|
||||
#include <asm/uaccess.h>
|
||||
#include <asm/ioctls.h>
|
||||
|
||||
#include <asm/firmware.h>
|
||||
#include <asm/vio.h>
|
||||
#include <asm/iseries/vio.h>
|
||||
#include <asm/iseries/hv_lp_event.h>
|
||||
|
@ -997,6 +997,9 @@ int __init viotap_init(void)
|
|||
int ret;
|
||||
struct proc_dir_entry *e;
|
||||
|
||||
if (!firmware_has_feature(FW_FEATURE_ISERIES))
|
||||
return -ENODEV;
|
||||
|
||||
op_struct_list = NULL;
|
||||
if ((ret = add_op_structs(VIOTAPE_MAXREQ)) < 0) {
|
||||
printk(VIOTAPE_KERN_WARN "couldn't allocate op structs\n");
|
||||
|
|
Loading…
Reference in a new issue