aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/maps/physmap.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-12-23 05:00:14 -0500
committerDavid Woodhouse <David.Woodhouse@intel.com>2008-12-23 05:00:14 -0500
commit160bbab3000dafccbe43688e48208cecf4deb879 (patch)
tree64e978ecc07d9d1f1a1345db40fc50e818321d57 /drivers/mtd/maps/physmap.c
parentd85316ac459f1cdd14ea1828eebeac1f1028e167 (diff)
[MTD] struct device - replace bus_id with dev_name(), dev_set_name()
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/maps/physmap.c')
-rw-r--r--drivers/mtd/maps/physmap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mtd/maps/physmap.c b/drivers/mtd/maps/physmap.c
index 58207b3b9411..d3a2acc7e9be 100644
--- a/drivers/mtd/maps/physmap.c
+++ b/drivers/mtd/maps/physmap.c
@@ -106,13 +106,13 @@ static int physmap_flash_probe(struct platform_device *dev)
106 if (!devm_request_mem_region(&dev->dev, 106 if (!devm_request_mem_region(&dev->dev,
107 dev->resource[i].start, 107 dev->resource[i].start,
108 dev->resource[i].end - dev->resource[i].start + 1, 108 dev->resource[i].end - dev->resource[i].start + 1,
109 dev->dev.bus_id)) { 109 dev_name(&dev->dev))) {
110 dev_err(&dev->dev, "Could not reserve memory region\n"); 110 dev_err(&dev->dev, "Could not reserve memory region\n");
111 err = -ENOMEM; 111 err = -ENOMEM;
112 goto err_out; 112 goto err_out;
113 } 113 }
114 114
115 info->map[i].name = dev->dev.bus_id; 115 info->map[i].name = dev_name(&dev->dev);
116 info->map[i].phys = dev->resource[i].start; 116 info->map[i].phys = dev->resource[i].start;
117 info->map[i].size = dev->resource[i].end - dev->resource[i].start + 1; 117 info->map[i].size = dev->resource[i].end - dev->resource[i].start + 1;
118 info->map[i].bankwidth = physmap_data->width; 118 info->map[i].bankwidth = physmap_data->width;
@@ -148,7 +148,7 @@ static int physmap_flash_probe(struct platform_device *dev)
148 * We detected multiple devices. Concatenate them together. 148 * We detected multiple devices. Concatenate them together.
149 */ 149 */
150#ifdef CONFIG_MTD_CONCAT 150#ifdef CONFIG_MTD_CONCAT
151 info->cmtd = mtd_concat_create(info->mtd, devices_found, dev->dev.bus_id); 151 info->cmtd = mtd_concat_create(info->mtd, devices_found, dev_name(&dev->dev));
152 if (info->cmtd == NULL) 152 if (info->cmtd == NULL)
153 err = -ENXIO; 153 err = -ENXIO;
154#else 154#else