arm-charlcd.c (4b4193256c8d3bc3a5397b5cd9494c2ad386317d) arm-charlcd.c (632691ad83197227adc902793a2a3e10c04fe9b8)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Driver for the on-board character LCD found on some ARM reference boards
4 * This is basically an Hitachi HD44780 LCD with a custom IP block to drive it
5 * https://en.wikipedia.org/wiki/HD44780_Character_LCD
6 * Currently it will just display the text "ARM Linux" and the linux version
7 *
8 * Author: Linus Walleij <triad@df.lth.se>

--- 256 unchanged lines hidden (view full) ---

265}
266
267static int __init charlcd_probe(struct platform_device *pdev)
268{
269 int ret;
270 struct charlcd *lcd;
271 struct resource *res;
272
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Driver for the on-board character LCD found on some ARM reference boards
4 * This is basically an Hitachi HD44780 LCD with a custom IP block to drive it
5 * https://en.wikipedia.org/wiki/HD44780_Character_LCD
6 * Currently it will just display the text "ARM Linux" and the linux version
7 *
8 * Author: Linus Walleij <triad@df.lth.se>

--- 256 unchanged lines hidden (view full) ---

265}
266
267static int __init charlcd_probe(struct platform_device *pdev)
268{
269 int ret;
270 struct charlcd *lcd;
271 struct resource *res;
272
273 lcd = kzalloc(sizeof(struct charlcd), GFP_KERNEL);
273 lcd = kzalloc(sizeof(*lcd), GFP_KERNEL);
274 if (!lcd)
275 return -ENOMEM;
276
277 lcd->dev = &pdev->dev;
278
279 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
280 if (!res) {
281 ret = -ENOENT;

--- 87 unchanged lines hidden ---
274 if (!lcd)
275 return -ENOMEM;
276
277 lcd->dev = &pdev->dev;
278
279 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
280 if (!res) {
281 ret = -ENOENT;

--- 87 unchanged lines hidden ---