Home
last modified time | relevance | path

Searched refs:dcon_device (Results 1 – 1 of 1) sorted by relevance

/Linux-v5.15/drivers/staging/olpc_dcon/
Dolpc_dcon.c43 static struct platform_device *dcon_device; variable
618 dcon_device = platform_device_alloc("dcon", -1); in dcon_probe()
620 if (!dcon_device) { in dcon_probe()
625 rc = platform_device_add(dcon_device); in dcon_probe()
626 platform_set_drvdata(dcon_device, dcon); in dcon_probe()
634 rc = device_create_file(&dcon_device->dev, in dcon_probe()
637 dev_err(&dcon_device->dev, "Cannot create sysfs file\n"); in dcon_probe()
646 dcon->bl_dev = backlight_device_register("dcon-bl", &dcon_device->dev, in dcon_probe()
662 device_remove_file(&dcon_device->dev, &dcon_device_files[j]); in dcon_probe()
663 platform_device_del(dcon_device); in dcon_probe()
[all …]