Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 44759
b: refs/heads/master
c: 31c72ad
h: refs/heads/master
i:
  44757: 6270e75
  44755: 4846e0c
  44751: 12760cb
v: v3
  • Loading branch information
Stephen Rothwell authored and Paul Mackerras committed Dec 20, 2006
1 parent ac6da35 commit 6900655
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 687d18abed09315a531470a0edcae977ef6a7f9e
refs/heads/master: 31c72ad0d10b561e7e5f843747e7d0c1abf4d6f7
4 changes: 4 additions & 0 deletions trunk/drivers/cdrom/viocd.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
#include <asm/iseries/hv_types.h>
#include <asm/iseries/hv_lp_event.h>
#include <asm/iseries/vio.h>
#include <asm/firmware.h>

#define VIOCD_DEVICE "iseries/vcd"

Expand Down Expand Up @@ -748,6 +749,9 @@ static int __init viocd_init(void)
struct proc_dir_entry *e;
int ret = 0;

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

if (viopath_hostLp == HvLpIndexInvalid) {
vio_set_hostlp();
/* If we don't have a host, bail out */
Expand Down

0 comments on commit 6900655

Please sign in to comment.