mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
[POWERPC] iSeries: fix viocd init
Only initialise viocd on legacy iSeries. Signed-off-by: Stephen Rothwell <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
This commit is contained in:
parent
687d18abed
commit
31c72ad0d1
1 changed files with 4 additions and 0 deletions
|
|
@ -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"
|
||||
|
||||
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue