]> err.no Git - linux-2.6/commit
[IA64] mbcs_init() should give up unless running on sn2
authorGreg Edwards <edwardsg@sgi.com>
Wed, 28 Sep 2005 22:05:19 +0000 (17:05 -0500)
committerTony Luck <tony.luck@intel.com>
Tue, 4 Oct 2005 16:39:18 +0000 (09:39 -0700)
commit96f339c6b95344942fe5fce012ff4f2a3b2cb80d
treec83a3ecd44d161becb4fe29cbbcdffc6f2f29dbb
parented39f731ab2e77e58122232f6e27333331d7793d
[IA64] mbcs_init() should give up unless running on sn2

CONFIG_SGI_MBCS is enabled in generic kernels, but the driver may
oops some other platforms.  Check whether we are running on sn2
and bail out if we are not before doing anything dangerous.

Acked-by: Bruce Losure <blosure@americas.sgi.com>
Signed-off-by: Greg Edwards <edwardsg@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
drivers/char/mbcs.c