summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorTony Luck2005-10-12 00:08:48 +0200
committerTony Luck2005-10-12 00:08:48 +0200
commit74e52aa561d5bb973075c2015133546b42cdc290 (patch)
tree3e8f269e99443bdb3cec6e23f3193dd696e6518e /drivers
parent[PATCH] Don't map the same page too much (diff)
parent[IA64] mbcs_init() should give up unless running on sn2 (diff)
downloadkernel-qcow2-linux-74e52aa561d5bb973075c2015133546b42cdc290.tar.gz
kernel-qcow2-linux-74e52aa561d5bb973075c2015133546b42cdc290.tar.xz
kernel-qcow2-linux-74e52aa561d5bb973075c2015133546b42cdc290.zip
Pull mbcs-init-sn-check into release branch
Diffstat (limited to 'drivers')
-rw-r--r--drivers/char/mbcs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/char/mbcs.c b/drivers/char/mbcs.c
index 3fa64c631108..c268ee04b2aa 100644
--- a/drivers/char/mbcs.c
+++ b/drivers/char/mbcs.c
@@ -830,6 +830,9 @@ static int __init mbcs_init(void)
{
int rv;
+ if (!ia64_platform_is("sn2"))
+ return -ENODEV;
+
// Put driver into chrdevs[]. Get major number.
rv = register_chrdev(mbcs_major, DEVICE_NAME, &mbcs_ops);
if (rv < 0) {