Explorar el Código

Pull mbcs-init-sn-check into release branch

Tony Luck hace 20 años
padre
commit
74e52aa561
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      drivers/char/mbcs.c

+ 3 - 0
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) {