From e0fb3b63965109c9ae459e7316b4956cfdd61296 Mon Sep 17 00:00:00 2001 From: blogic Date: Wed, 25 Jun 2008 23:05:50 +0000 Subject: cleanup ifxmips and add support for both ttyS git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11578 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/ifxmips/files/drivers/char/ifxmips_led.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'target/linux/ifxmips/files/drivers/char') diff --git a/target/linux/ifxmips/files/drivers/char/ifxmips_led.c b/target/linux/ifxmips/files/drivers/char/ifxmips_led.c index 40d2c96f6..090516c5a 100644 --- a/target/linux/ifxmips/files/drivers/char/ifxmips_led.c +++ b/target/linux/ifxmips/files/drivers/char/ifxmips_led.c @@ -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); -- cgit v1.2.3