Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 38490
b: refs/heads/master
c: de0138d
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Rothwell committed Sep 25, 2006
1 parent 00fb4a6 commit d22f751
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ef26a46f8c501f6888cc78bcc4a2dc1efea1e733
refs/heads/master: de0138da0f8cf406c096daec7494a5cbebce2e5c
8 changes: 6 additions & 2 deletions trunk/drivers/char/hvc_iseries.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include <asm/hvconsole.h>
#include <asm/vio.h>
#include <asm/prom.h>
#include <asm/firmware.h>
#include <asm/iseries/vio.h>
#include <asm/iseries/hv_call.h>
#include <asm/iseries/hv_lp_config.h>
Expand Down Expand Up @@ -493,6 +494,9 @@ static int hvc_vio_init(void)
atomic_t wait_flag;
int rc;

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

/* +2 for fudge */
rc = viopath_open(HvLpConfig_getPrimaryLpIndex(),
viomajorsubtype_chario, VIOCHAR_WINDOW + 2);
Expand Down Expand Up @@ -567,7 +571,7 @@ static int hvc_find_vtys(void)

for (vty = of_find_node_by_name(NULL, "vty"); vty != NULL;
vty = of_find_node_by_name(vty, "vty")) {
uint32_t *vtermno;
const uint32_t *vtermno;

/* We have statically defined space for only a certain number
* of console adapters.
Expand All @@ -576,7 +580,7 @@ static int hvc_find_vtys(void)
(num_found >= VTTY_PORTS))
break;

vtermno = (uint32_t *)get_property(vty, "reg", NULL);
vtermno = get_property(vty, "reg", NULL);
if (!vtermno)
continue;

Expand Down
4 changes: 4 additions & 0 deletions trunk/drivers/char/hvc_vio.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include <asm/hvconsole.h>
#include <asm/vio.h>
#include <asm/prom.h>
#include <asm/firmware.h>

#include "hvc_console.h"

Expand Down Expand Up @@ -120,6 +121,9 @@ static int hvc_vio_init(void)
{
int rc;

if (firmware_has_feature(FW_FEATURE_ISERIES))
return -EIO;

/* Register as a vio device to receive callbacks */
rc = vio_register_driver(&hvc_vio_driver);

Expand Down

0 comments on commit d22f751

Please sign in to comment.