File tree 2 files changed +4
-3
lines changed 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -499,7 +499,8 @@ static int __devinit au1100fb_drv_probe(struct platform_device *dev)
499
499
au1100fb_fix .mmio_start = regs_res -> start ;
500
500
au1100fb_fix .mmio_len = resource_size (regs_res );
501
501
502
- if (!devm_request_mem_region (au1100fb_fix .mmio_start ,
502
+ if (!devm_request_mem_region (& dev -> dev ,
503
+ au1100fb_fix .mmio_start ,
503
504
au1100fb_fix .mmio_len ,
504
505
DRIVER_NAME )) {
505
506
print_err ("fail to lock memory region at 0x%08lx" ,
@@ -516,7 +517,7 @@ static int __devinit au1100fb_drv_probe(struct platform_device *dev)
516
517
fbdev -> fb_len = fbdev -> panel -> xres * fbdev -> panel -> yres *
517
518
(fbdev -> panel -> bpp >> 3 ) * AU1100FB_NBR_VIDEO_BUFFERS ;
518
519
519
- fbdev -> fb_mem = dmam_alloc_coherent (& dev -> dev , & dev -> dev ,
520
+ fbdev -> fb_mem = dmam_alloc_coherent (& dev -> dev ,
520
521
PAGE_ALIGN (fbdev -> fb_len ),
521
522
& fbdev -> fb_phys , GFP_KERNEL );
522
523
if (!fbdev -> fb_mem ) {
Original file line number Diff line number Diff line change @@ -1724,7 +1724,7 @@ static int __devinit au1200fb_drv_probe(struct platform_device *dev)
1724
1724
/* Allocate the framebuffer to the maximum screen size */
1725
1725
fbdev -> fb_len = (win -> w [plane ].xres * win -> w [plane ].yres * bpp ) / 8 ;
1726
1726
1727
- fbdev -> fb_mem = dmam_alloc_noncoherent (& dev -> dev , & dev -> dev ,
1727
+ fbdev -> fb_mem = dmam_alloc_noncoherent (& dev -> dev ,
1728
1728
PAGE_ALIGN (fbdev -> fb_len ),
1729
1729
& fbdev -> fb_phys , GFP_KERNEL );
1730
1730
if (!fbdev -> fb_mem ) {
You can’t perform that action at this time.
0 commit comments