Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 44760
b: refs/heads/master
c: 94c8f9f
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Rothwell authored and Paul Mackerras committed Dec 20, 2006
1 parent 6900655 commit 974d6a2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 31c72ad0d10b561e7e5f843747e7d0c1abf4d6f7
refs/heads/master: 94c8f9f974f2ad29b90b2830b189d74a633fef49
7 changes: 7 additions & 0 deletions trunk/drivers/char/viocons.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
#include <linux/tty_flip.h>
#include <linux/sysrq.h>

#include <asm/firmware.h>
#include <asm/iseries/vio.h>
#include <asm/iseries/hv_lp_event.h>
#include <asm/iseries/hv_call_event.h>
Expand Down Expand Up @@ -1060,6 +1061,9 @@ static int __init viocons_init2(void)
atomic_t wait_flag;
int rc;

if (!firmware_has_feature(FW_FEATURE_ISERIES))
return -ENODEV;

/* +2 for fudge */
rc = viopath_open(HvLpConfig_getPrimaryLpIndex(),
viomajorsubtype_chario, VIOCHAR_WINDOW + 2);
Expand Down Expand Up @@ -1145,6 +1149,9 @@ static int __init viocons_init(void)
{
int i;

if (!firmware_has_feature(FW_FEATURE_ISERIES))
return -ENODEV;

printk(VIOCONS_KERN_INFO "registering console\n");
for (i = 0; i < VTTY_PORTS; i++) {
port_info[i].lp = HvLpIndexInvalid;
Expand Down

0 comments on commit 974d6a2

Please sign in to comment.