Skip to content

Commit

Permalink
[POWERPC] iSeries: fix viotape init
Browse files Browse the repository at this point in the history
Only initialise viotape on legacy iSeries.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Stephen Rothwell authored and Paul Mackerras committed Dec 20, 2006
1 parent fb8b500 commit fd38451
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/char/viotape.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit fd38451

Please sign in to comment.