|
@@ -258,7 +258,7 @@ static int __init pmagbbfb_probe(struct device *dev)
|
|
|
|
|
|
info = framebuffer_alloc(sizeof(struct pmagbbfb_par), dev);
|
|
info = framebuffer_alloc(sizeof(struct pmagbbfb_par), dev);
|
|
if (!info) {
|
|
if (!info) {
|
|
- printk(KERN_ERR "%s: Cannot allocate memory\n", dev->bus_id);
|
|
|
|
|
|
+ printk(KERN_ERR "%s: Cannot allocate memory\n", dev_name(dev));
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -267,7 +267,7 @@ static int __init pmagbbfb_probe(struct device *dev)
|
|
|
|
|
|
if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) {
|
|
if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) {
|
|
printk(KERN_ERR "%s: Cannot allocate color map\n",
|
|
printk(KERN_ERR "%s: Cannot allocate color map\n",
|
|
- dev->bus_id);
|
|
|
|
|
|
+ dev_name(dev));
|
|
err = -ENOMEM;
|
|
err = -ENOMEM;
|
|
goto err_alloc;
|
|
goto err_alloc;
|
|
}
|
|
}
|
|
@@ -280,8 +280,9 @@ static int __init pmagbbfb_probe(struct device *dev)
|
|
/* Request the I/O MEM resource. */
|
|
/* Request the I/O MEM resource. */
|
|
start = tdev->resource.start;
|
|
start = tdev->resource.start;
|
|
len = tdev->resource.end - start + 1;
|
|
len = tdev->resource.end - start + 1;
|
|
- if (!request_mem_region(start, len, dev->bus_id)) {
|
|
|
|
- printk(KERN_ERR "%s: Cannot reserve FB region\n", dev->bus_id);
|
|
|
|
|
|
+ if (!request_mem_region(start, len, dev_name(dev))) {
|
|
|
|
+ printk(KERN_ERR "%s: Cannot reserve FB region\n",
|
|
|
|
+ dev_name(dev));
|
|
err = -EBUSY;
|
|
err = -EBUSY;
|
|
goto err_cmap;
|
|
goto err_cmap;
|
|
}
|
|
}
|
|
@@ -290,7 +291,7 @@ static int __init pmagbbfb_probe(struct device *dev)
|
|
info->fix.mmio_start = start;
|
|
info->fix.mmio_start = start;
|
|
par->mmio = ioremap_nocache(info->fix.mmio_start, info->fix.mmio_len);
|
|
par->mmio = ioremap_nocache(info->fix.mmio_start, info->fix.mmio_len);
|
|
if (!par->mmio) {
|
|
if (!par->mmio) {
|
|
- printk(KERN_ERR "%s: Cannot map MMIO\n", dev->bus_id);
|
|
|
|
|
|
+ printk(KERN_ERR "%s: Cannot map MMIO\n", dev_name(dev));
|
|
err = -ENOMEM;
|
|
err = -ENOMEM;
|
|
goto err_resource;
|
|
goto err_resource;
|
|
}
|
|
}
|
|
@@ -301,7 +302,7 @@ static int __init pmagbbfb_probe(struct device *dev)
|
|
info->fix.smem_start = start + PMAGB_B_FBMEM;
|
|
info->fix.smem_start = start + PMAGB_B_FBMEM;
|
|
par->smem = ioremap_nocache(info->fix.smem_start, info->fix.smem_len);
|
|
par->smem = ioremap_nocache(info->fix.smem_start, info->fix.smem_len);
|
|
if (!par->smem) {
|
|
if (!par->smem) {
|
|
- printk(KERN_ERR "%s: Cannot map FB\n", dev->bus_id);
|
|
|
|
|
|
+ printk(KERN_ERR "%s: Cannot map FB\n", dev_name(dev));
|
|
err = -ENOMEM;
|
|
err = -ENOMEM;
|
|
goto err_mmio_map;
|
|
goto err_mmio_map;
|
|
}
|
|
}
|
|
@@ -316,7 +317,7 @@ static int __init pmagbbfb_probe(struct device *dev)
|
|
err = register_framebuffer(info);
|
|
err = register_framebuffer(info);
|
|
if (err < 0) {
|
|
if (err < 0) {
|
|
printk(KERN_ERR "%s: Cannot register framebuffer\n",
|
|
printk(KERN_ERR "%s: Cannot register framebuffer\n",
|
|
- dev->bus_id);
|
|
|
|
|
|
+ dev_name(dev));
|
|
goto err_smem_map;
|
|
goto err_smem_map;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -328,7 +329,7 @@ static int __init pmagbbfb_probe(struct device *dev)
|
|
par->osc1 / 1000, par->osc1 % 1000);
|
|
par->osc1 / 1000, par->osc1 % 1000);
|
|
|
|
|
|
pr_info("fb%d: %s frame buffer device at %s\n",
|
|
pr_info("fb%d: %s frame buffer device at %s\n",
|
|
- info->node, info->fix.id, dev->bus_id);
|
|
|
|
|
|
+ info->node, info->fix.id, dev_name(dev));
|
|
pr_info("fb%d: Osc0: %s, Osc1: %s, Osc%u selected\n",
|
|
pr_info("fb%d: Osc0: %s, Osc1: %s, Osc%u selected\n",
|
|
info->node, freq0, par->osc1 ? freq1 : "disabled",
|
|
info->node, freq0, par->osc1 ? freq1 : "disabled",
|
|
par->osc1 != 0);
|
|
par->osc1 != 0);
|