aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ifxmips/files/drivers/char/ifxmips_led.c
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2008-06-25 23:05:50 +0000
committerJohn Crispin <john@openwrt.org>2008-06-25 23:05:50 +0000
commit2cc35a5235309eac4dc1feb1fff342e5db1a1e94 (patch)
tree7a27207850a4ea3af5c408c938e0cfefb8a24762 /target/linux/ifxmips/files/drivers/char/ifxmips_led.c
parenta3236bc99d391015710c19c6c312ffb0e95e9d0a (diff)
downloadupstream-2cc35a5235309eac4dc1feb1fff342e5db1a1e94.tar.gz
upstream-2cc35a5235309eac4dc1feb1fff342e5db1a1e94.tar.bz2
upstream-2cc35a5235309eac4dc1feb1fff342e5db1a1e94.zip
cleanup ifxmips and add support for both ttyS
SVN-Revision: 11578
Diffstat (limited to 'target/linux/ifxmips/files/drivers/char/ifxmips_led.c')
-rw-r--r--target/linux/ifxmips/files/drivers/char/ifxmips_led.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ifxmips/files/drivers/char/ifxmips_led.c b/target/linux/ifxmips/files/drivers/char/ifxmips_led.c
index 40d2c96f69..090516c5ad 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);