.. | .. |
---|
64 | 64 | printk(KERN_DEBUG "LCD: write\n"); |
---|
65 | 65 | #endif |
---|
66 | 66 | |
---|
67 | | - if (!access_ok(VERIFY_READ, buf, count)) |
---|
| 67 | + if (!access_ok(buf, count)) |
---|
68 | 68 | return -EFAULT; |
---|
69 | 69 | |
---|
70 | 70 | mutex_lock(&anslcd_mutex); |
---|
.. | .. |
---|
142 | 142 | }; |
---|
143 | 143 | |
---|
144 | 144 | static struct miscdevice anslcd_dev = { |
---|
145 | | - ANSLCD_MINOR, |
---|
| 145 | + LCD_MINOR, |
---|
146 | 146 | "anslcd", |
---|
147 | 147 | &anslcd_fops |
---|
148 | 148 | }; |
---|
149 | 149 | |
---|
150 | | -const char anslcd_logo[] = "********************" /* Line #1 */ |
---|
| 150 | +static const char anslcd_logo[] __initconst = |
---|
| 151 | + "********************" /* Line #1 */ |
---|
151 | 152 | "* LINUX! *" /* Line #3 */ |
---|
152 | 153 | "* Welcome to *" /* Line #2 */ |
---|
153 | 154 | "********************"; /* Line #4 */ |
---|
.. | .. |
---|
160 | 161 | struct device_node* node; |
---|
161 | 162 | |
---|
162 | 163 | node = of_find_node_by_name(NULL, "lcd"); |
---|
163 | | - if (!node || !node->parent || strcmp(node->parent->name, "gc")) { |
---|
| 164 | + if (!node || !of_node_name_eq(node->parent, "gc")) { |
---|
164 | 165 | of_node_put(node); |
---|
165 | 166 | return -ENODEV; |
---|
166 | 167 | } |
---|