cfag12864b.c (bc95f3669f5e6f63cf0b84fe4922c3c6dd4aa775) | cfag12864b.c (fe58103a56f05613cb1f0ef228354d4d5f6c2b08) |
---|---|
1/* 2 * Filename: cfag12864b.c 3 * Version: 0.1.0 4 * Description: cfag12864b LCD driver 5 * License: GPLv2 6 * Depends: ks0108 7 * 8 * Author: Copyright (C) Miguel Ojeda Sandonis <maxextreme@gmail.com> --- 341 unchanged lines hidden (view full) --- 350 printk(KERN_ERR CFAG12864B_NAME ": ERROR: " 351 "can't get a free page\n"); 352 ret = -ENOMEM; 353 goto none; 354 } 355 356 cfag12864b_cache = kmalloc(sizeof(unsigned char) * 357 CFAG12864B_SIZE, GFP_KERNEL); | 1/* 2 * Filename: cfag12864b.c 3 * Version: 0.1.0 4 * Description: cfag12864b LCD driver 5 * License: GPLv2 6 * Depends: ks0108 7 * 8 * Author: Copyright (C) Miguel Ojeda Sandonis <maxextreme@gmail.com> --- 341 unchanged lines hidden (view full) --- 350 printk(KERN_ERR CFAG12864B_NAME ": ERROR: " 351 "can't get a free page\n"); 352 ret = -ENOMEM; 353 goto none; 354 } 355 356 cfag12864b_cache = kmalloc(sizeof(unsigned char) * 357 CFAG12864B_SIZE, GFP_KERNEL); |
358 if (cfag12864b_buffer == NULL) { | 358 if (cfag12864b_cache == NULL) { |
359 printk(KERN_ERR CFAG12864B_NAME ": ERROR: " 360 "can't alloc cache buffer (%i bytes)\n", 361 CFAG12864B_SIZE); 362 ret = -ENOMEM; 363 goto bufferalloced; 364 } 365 366 cfag12864b_workqueue = create_singlethread_workqueue(CFAG12864B_NAME); --- 36 unchanged lines hidden --- | 359 printk(KERN_ERR CFAG12864B_NAME ": ERROR: " 360 "can't alloc cache buffer (%i bytes)\n", 361 CFAG12864B_SIZE); 362 ret = -ENOMEM; 363 goto bufferalloced; 364 } 365 366 cfag12864b_workqueue = create_singlethread_workqueue(CFAG12864B_NAME); --- 36 unchanged lines hidden --- |