From: Stephen Rothwell Date: Fri, 15 Dec 2006 04:44:04 +0000 (+1100) Subject: [POWERPC] iSeries: fix viocd init X-Git-Tag: v2.6.20-rc2~84^2~7 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31c72ad0d10b561e7e5f843747e7d0c1abf4d6f7;p=linux-2.6 [POWERPC] iSeries: fix viocd init Only initialise viocd on legacy iSeries. Signed-off-by: Stephen Rothwell Signed-off-by: Paul Mackerras --- diff --git a/drivers/cdrom/viocd.c b/drivers/cdrom/viocd.c index 54ca931e19..93fbf84dcc 100644 --- a/drivers/cdrom/viocd.c +++ b/drivers/cdrom/viocd.c @@ -47,6 +47,7 @@ #include #include #include +#include #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 */