summaryrefslogtreecommitdiffstats
path: root/drivers/nor/cfi_flash_new.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2009-06-11 15:33:49 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2009-07-21 16:41:47 +0200
commit02ba8a0542f119e02e63a3b4cd6ae5abfd8331f3 (patch)
treec358a8c1f4d1cc5db91d898e6f409f55b22f4127 /drivers/nor/cfi_flash_new.c
parent2f8df2a003a22e8b7397e51ac5f1796db920d579 (diff)
downloadbarebox-02ba8a0542f119e02e63a3b4cd6ae5abfd8331f3.tar.gz
barebox-02ba8a0542f119e02e63a3b4cd6ae5abfd8331f3.tar.xz
get rid of device ids
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/nor/cfi_flash_new.c')
-rw-r--r--drivers/nor/cfi_flash_new.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/nor/cfi_flash_new.c b/drivers/nor/cfi_flash_new.c
index f45b97b839..e114bd2be6 100644
--- a/drivers/nor/cfi_flash_new.c
+++ b/drivers/nor/cfi_flash_new.c
@@ -948,7 +948,6 @@ static int cfi_probe (struct device_d *dev)
{
unsigned long size = 0;
flash_info_t *info = xzalloc(sizeof(flash_info_t));
- char name[MAX_DRIVER_NAME];
dev->priv = (void *)info;
@@ -969,8 +968,7 @@ static int cfi_probe (struct device_d *dev)
return -ENODEV;
}
- get_free_deviceid(name, "nor");
- info->cdev.name = strdup(name);
+ info->cdev.name = asprintf("nor%d", dev->id);
info->cdev.size = info->size;
info->cdev.dev = dev;
info->cdev.ops = &cfi_ops;