diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-03-26 14:17:04 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-03-26 14:17:04 -0400 |
commit | 0c93ea4064a209cdc36de8a9a3003d43d08f46f7 (patch) | |
tree | ff19952407c523a1349ef56c05993416dd28437e /drivers/video/pmag-ba-fb.c | |
parent | bc2fd381d8f9dbeb181f82286cdca1567e3d0def (diff) | |
parent | e6e66b02e11563abdb7f69dcb7a2efbd8d577e77 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6: (61 commits)
Dynamic debug: fix pr_fmt() build error
Dynamic debug: allow simple quoting of words
dynamic debug: update docs
dynamic debug: combine dprintk and dynamic printk
sysfs: fix some bin_vm_ops errors
kobject: don't block for each kobject_uevent
sysfs: only allow one scheduled removal callback per kobj
Driver core: Fix device_move() vs. dpm list ordering, v2
Driver core: some cleanup on drivers/base/sys.c
Driver core: implement uevent suppress in kobject
vcs: hook sysfs devices into object lifetime instead of "binding"
driver core: fix passing platform_data
driver core: move platform_data into platform_device
sysfs: don't block indefinitely for unmapped files.
driver core: move knode_bus into private structure
driver core: move knode_driver into private structure
driver core: move klist_children into private structure
driver core: create a private portion of struct device
driver core: remove polling for driver_probe_done(v5)
sysfs: reference sysfs_dirent from sysfs inodes
...
Fixed conflicts in drivers/sh/maple/maple.c manually
Diffstat (limited to 'drivers/video/pmag-ba-fb.c')
-rw-r--r-- | drivers/video/pmag-ba-fb.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/drivers/video/pmag-ba-fb.c b/drivers/video/pmag-ba-fb.c index 3a3f80f65219..0573ec685a57 100644 --- a/drivers/video/pmag-ba-fb.c +++ b/drivers/video/pmag-ba-fb.c | |||
@@ -151,7 +151,7 @@ static int __init pmagbafb_probe(struct device *dev) | |||
151 | 151 | ||
152 | info = framebuffer_alloc(sizeof(struct pmagbafb_par), dev); | 152 | info = framebuffer_alloc(sizeof(struct pmagbafb_par), dev); |
153 | if (!info) { | 153 | if (!info) { |
154 | printk(KERN_ERR "%s: Cannot allocate memory\n", dev->bus_id); | 154 | printk(KERN_ERR "%s: Cannot allocate memory\n", dev_name(dev)); |
155 | return -ENOMEM; | 155 | return -ENOMEM; |
156 | } | 156 | } |
157 | 157 | ||
@@ -160,7 +160,7 @@ static int __init pmagbafb_probe(struct device *dev) | |||
160 | 160 | ||
161 | if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) { | 161 | if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) { |
162 | printk(KERN_ERR "%s: Cannot allocate color map\n", | 162 | printk(KERN_ERR "%s: Cannot allocate color map\n", |
163 | dev->bus_id); | 163 | dev_name(dev)); |
164 | err = -ENOMEM; | 164 | err = -ENOMEM; |
165 | goto err_alloc; | 165 | goto err_alloc; |
166 | } | 166 | } |
@@ -173,8 +173,9 @@ static int __init pmagbafb_probe(struct device *dev) | |||
173 | /* Request the I/O MEM resource. */ | 173 | /* Request the I/O MEM resource. */ |
174 | start = tdev->resource.start; | 174 | start = tdev->resource.start; |
175 | len = tdev->resource.end - start + 1; | 175 | len = tdev->resource.end - start + 1; |
176 | if (!request_mem_region(start, len, dev->bus_id)) { | 176 | if (!request_mem_region(start, len, dev_name(dev))) { |
177 | printk(KERN_ERR "%s: Cannot reserve FB region\n", dev->bus_id); | 177 | printk(KERN_ERR "%s: Cannot reserve FB region\n", |
178 | dev_name(dev)); | ||
178 | err = -EBUSY; | 179 | err = -EBUSY; |
179 | goto err_cmap; | 180 | goto err_cmap; |
180 | } | 181 | } |
@@ -183,7 +184,7 @@ static int __init pmagbafb_probe(struct device *dev) | |||
183 | info->fix.mmio_start = start; | 184 | info->fix.mmio_start = start; |
184 | par->mmio = ioremap_nocache(info->fix.mmio_start, info->fix.mmio_len); | 185 | par->mmio = ioremap_nocache(info->fix.mmio_start, info->fix.mmio_len); |
185 | if (!par->mmio) { | 186 | if (!par->mmio) { |
186 | printk(KERN_ERR "%s: Cannot map MMIO\n", dev->bus_id); | 187 | printk(KERN_ERR "%s: Cannot map MMIO\n", dev_name(dev)); |
187 | err = -ENOMEM; | 188 | err = -ENOMEM; |
188 | goto err_resource; | 189 | goto err_resource; |
189 | } | 190 | } |
@@ -194,7 +195,7 @@ static int __init pmagbafb_probe(struct device *dev) | |||
194 | info->screen_base = ioremap_nocache(info->fix.smem_start, | 195 | info->screen_base = ioremap_nocache(info->fix.smem_start, |
195 | info->fix.smem_len); | 196 | info->fix.smem_len); |
196 | if (!info->screen_base) { | 197 | if (!info->screen_base) { |
197 | printk(KERN_ERR "%s: Cannot map FB\n", dev->bus_id); | 198 | printk(KERN_ERR "%s: Cannot map FB\n", dev_name(dev)); |
198 | err = -ENOMEM; | 199 | err = -ENOMEM; |
199 | goto err_mmio_map; | 200 | goto err_mmio_map; |
200 | } | 201 | } |
@@ -205,14 +206,14 @@ static int __init pmagbafb_probe(struct device *dev) | |||
205 | err = register_framebuffer(info); | 206 | err = register_framebuffer(info); |
206 | if (err < 0) { | 207 | if (err < 0) { |
207 | printk(KERN_ERR "%s: Cannot register framebuffer\n", | 208 | printk(KERN_ERR "%s: Cannot register framebuffer\n", |
208 | dev->bus_id); | 209 | dev_name(dev)); |
209 | goto err_smem_map; | 210 | goto err_smem_map; |
210 | } | 211 | } |
211 | 212 | ||
212 | get_device(dev); | 213 | get_device(dev); |
213 | 214 | ||
214 | pr_info("fb%d: %s frame buffer device at %s\n", | 215 | pr_info("fb%d: %s frame buffer device at %s\n", |
215 | info->node, info->fix.id, dev->bus_id); | 216 | info->node, info->fix.id, dev_name(dev)); |
216 | 217 | ||
217 | return 0; | 218 | return 0; |
218 | 219 | ||