tty/powerpc: fix build break with ehv_bytechan.c on allyesconfig
authorTimur Tabi <timur@freescale.com>
Thu, 25 Aug 2011 18:06:57 +0000 (13:06 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 26 Aug 2011 18:01:15 +0000 (11:01 -0700)
commit191c5cf1ffc8acf61cd2d2407052ced1a1116130
tree9b856f76de9c4946ca53372ecde26d9dd0d92f49
parentda4e40e271a30ecf8b87f70619cca93c25ed0199
tty/powerpc: fix build break with ehv_bytechan.c on allyesconfig

The ePAPR hypervisor byte channel driver is supposed to work on all
ePAPR-compliant embedded PowerPC systems, but it had a reference to the MSR_GS
bit, which is available only on Book-E systems.

Also fix a couple integer-to-pointer typecast problems.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/tty/ehv_bytechan.c