summaryrefslogtreecommitdiffstats
path: root/drivers/eeprom/at24.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/eeprom/at24.c')
-rw-r--r--drivers/eeprom/at24.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/eeprom/at24.c b/drivers/eeprom/at24.c
index 3c0a7a9d47..a323d25dd4 100644
--- a/drivers/eeprom/at24.c
+++ b/drivers/eeprom/at24.c
@@ -429,7 +429,7 @@ static int at24_probe(struct device_d *dev)
at24->chip = chip;
at24->num_addresses = num_addresses;
- at24->cdev.name = asprintf("eeprom%d", dev->id);
+ at24->cdev.name = basprintf("eeprom%d", dev->id);
at24->cdev.priv = at24;
at24->cdev.dev = dev;
at24->cdev.ops = &at24->fops;