[PATCH 2/7] [POWERPC] The two vio HVC backends clash
Olof Johansson
olof at lixom.net
Tue Sep 26 15:10:41 EST 2006
On Tue, 26 Sep 2006 13:35:48 +1000 Stephen Rothwell <sfr at canb.auug.org.au> wrote:
> diff --git a/drivers/char/hvc_iseries.c b/drivers/char/hvc_iseries.c
> index 4747729..ea36201 100644
> --- a/drivers/char/hvc_iseries.c
> +++ b/drivers/char/hvc_iseries.c
> @@ -29,6 +29,7 @@ #include <linux/console.h>
> #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>
> @@ -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;
> +
Shouldn't this be -ENODEV?
-Olof
More information about the Linuxppc-dev
mailing list