cleanup ifxmips and add support for both ttyS
[openwrt/svn-archive/archive.git] / target / linux / ifxmips / files / drivers / char / ifxmips_led.c
index 40d2c96f69bced282a47c9c1baf6e1ea8d7ab413..090516c5ada9737e9b2f49a84b130dff143c6011 100644 (file)
@@ -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);