[PATCH 17/19] powerpc: hypervisor console driver for Celleb

Ishizaki Kou kou.ishizaki at toshiba.co.jp
Thu Jan 18 18:53:48 EST 2007


Ben-san,

> > +/* temp */
> > +static int hvc_beat_init(void)
> > +{
> > +	struct hvc_struct *hp;
> > +
> > +	hp = hvc_alloc(0, NO_IRQ, &hvc_beat_get_put_ops, 16);
> > +	if (IS_ERR(hp))
> > +	   return PTR_ERR(hp);
> > +	   hvc_beat_dev = hp;
> > +	   return 0;
> > +}

> Please test your are running on beat before initializing your stuff as
> your driver might be built as part of a kernel that can boot other
> machines. 

I see. I'll fix it by using "firmware_has_feature()" macro.

Best regards,
Kou Ishizaki



More information about the Linuxppc-dev mailing list