mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
cleanup ifxmips and add support for both ttyS
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11578 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -147,7 +147,7 @@ ifxmips_led_probe(struct platform_device *dev)
|
||||
struct ifxmips_led *tmp = kzalloc(sizeof(struct ifxmips_led), GFP_KERNEL);
|
||||
tmp->cdev.brightness_set = ifxmips_ledapi_set;
|
||||
tmp->cdev.name = kmalloc(sizeof("ifxmips:led:00"), GFP_KERNEL);
|
||||
sprintf(tmp->cdev.name, "ifxmips:led:%02d", i);
|
||||
sprintf((char*)tmp->cdev.name, "ifxmips:led:%02d", i);
|
||||
tmp->cdev.default_trigger = NULL;
|
||||
tmp->bit = i;
|
||||
led_classdev_register(&dev->dev, &tmp->cdev);
|
||||
|
||||
Reference in New Issue
Block a user