Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'fbdev-for-6.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev

Pull fbdev updates from Helge Deller:
"Nothing really exiting in here.

The majority of lines changed is due to Uwe's preparation patches to
change the return value of the .remove() callback to void.

Summary:

- vt_buffer.h: Fix build on alpha (Randy Dunlap)

- mmp: Clock handling fix (Christophe JAILLET)

- 68328fb, ps3fb, vfb: Init .owner field of struct fb_ops (Thomas
Zimmermann)

- fbdev: cg14: Convert to platform remove callback returning void

- Preparation patches to convert drivers to return void in .remove()
callback (Uwe Kleine-König)

- Drop Paul Mackerras as rage128 maintainer"

* tag 'fbdev-for-6.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev: (51 commits)
MAINTAINERS: Remove rage128 framebuffer driver maintainer
fbdev: vfb: Init owner field of struct fb_ops
fbdev: ps3fb: Init owner field of struct fb_ops
fbdev: 68328fb: Init owner field of struct fb_ops
fbdev: mmp: Fix deferred clk handling in mmphw_probe()
linux/vt_buffer.h: allow either builtin or modular for macros
fbdev: xilinxfb: Convert to platform remove callback returning void
fbdev: wmt_ge_rops: Convert to platform remove callback returning void
fbdev: wm8505fb: Convert to platform remove callback returning void
fbdev: vt8500lcdfb: Convert to platform remove callback returning void
fbdev: via: Convert to platform remove callback returning void
fbdev: vga16fb: Convert to platform remove callback returning void
fbdev: vfb: Convert to platform remove callback returning void
fbdev: vesafb: Convert to platform remove callback returning void
fbdev: uvesafb: Convert to platform remove callback returning void
fbdev: tcx: Convert to platform remove callback returning void
fbdev: sm501fb: Convert to platform remove callback returning void
fbdev: simplefb: Convert to platform remove callback returning void
fbdev: sh_mobile_lcdcfb: Convert to platform remove callback returning void
fbdev: sh7760fb: Convert to platform remove callback returning void
...

+121 -212
+1 -2
MAINTAINERS
··· 17571 17571 F: drivers/block/rbd_types.h 17572 17572 17573 17573 RAGE128 FRAMEBUFFER DISPLAY DRIVER 17574 - M: Paul Mackerras <paulus@samba.org> 17575 17574 L: linux-fbdev@vger.kernel.org 17576 - S: Maintained 17575 + S: Orphan 17577 17576 F: drivers/video/fbdev/aty/aty128fb.c 17578 17577 17579 17578 RAINSHADOW-CEC DRIVER
+1
drivers/video/fbdev/68328fb.c
··· 94 94 static int mc68x328fb_mmap(struct fb_info *info, struct vm_area_struct *vma); 95 95 96 96 static const struct fb_ops mc68x328fb_ops = { 97 + .owner = THIS_MODULE, 97 98 .fb_check_var = mc68x328fb_check_var, 98 99 .fb_set_par = mc68x328fb_set_par, 99 100 .fb_setcolreg = mc68x328fb_setcolreg,
+2 -4
drivers/video/fbdev/cg14.c
··· 569 569 return err; 570 570 } 571 571 572 - static int cg14_remove(struct platform_device *op) 572 + static void cg14_remove(struct platform_device *op) 573 573 { 574 574 struct fb_info *info = dev_get_drvdata(&op->dev); 575 575 struct cg14_par *par = info->par; ··· 580 580 cg14_unmap_regs(op, info, par); 581 581 582 582 framebuffer_release(info); 583 - 584 - return 0; 585 583 } 586 584 587 585 static const struct of_device_id cg14_match[] = { ··· 596 598 .of_match_table = cg14_match, 597 599 }, 598 600 .probe = cg14_probe, 599 - .remove = cg14_remove, 601 + .remove_new = cg14_remove, 600 602 }; 601 603 602 604 static int __init cg14_init(void)
+2 -4
drivers/video/fbdev/cg3.c
··· 434 434 return err; 435 435 } 436 436 437 - static int cg3_remove(struct platform_device *op) 437 + static void cg3_remove(struct platform_device *op) 438 438 { 439 439 struct fb_info *info = dev_get_drvdata(&op->dev); 440 440 struct cg3_par *par = info->par; ··· 446 446 of_iounmap(&op->resource[0], info->screen_base, info->fix.smem_len); 447 447 448 448 framebuffer_release(info); 449 - 450 - return 0; 451 449 } 452 450 453 451 static const struct of_device_id cg3_match[] = { ··· 465 467 .of_match_table = cg3_match, 466 468 }, 467 469 .probe = cg3_probe, 468 - .remove = cg3_remove, 470 + .remove_new = cg3_remove, 469 471 }; 470 472 471 473 static int __init cg3_init(void)
+2 -4
drivers/video/fbdev/cg6.c
··· 828 828 return err; 829 829 } 830 830 831 - static int cg6_remove(struct platform_device *op) 831 + static void cg6_remove(struct platform_device *op) 832 832 { 833 833 struct fb_info *info = dev_get_drvdata(&op->dev); 834 834 struct cg6_par *par = info->par; ··· 839 839 cg6_unmap_regs(op, info, par); 840 840 841 841 framebuffer_release(info); 842 - 843 - return 0; 844 842 } 845 843 846 844 static const struct of_device_id cg6_match[] = { ··· 858 860 .of_match_table = cg6_match, 859 861 }, 860 862 .probe = cg6_probe, 861 - .remove = cg6_remove, 863 + .remove_new = cg6_remove, 862 864 }; 863 865 864 866 static int __init cg6_init(void)
+2 -4
drivers/video/fbdev/clps711x-fb.c
··· 350 350 return ret; 351 351 } 352 352 353 - static int clps711x_fb_remove(struct platform_device *pdev) 353 + static void clps711x_fb_remove(struct platform_device *pdev) 354 354 { 355 355 struct fb_info *info = platform_get_drvdata(pdev); 356 356 struct clps711x_fb_info *cfb = info->par; ··· 360 360 unregister_framebuffer(info); 361 361 fb_dealloc_cmap(&info->cmap); 362 362 framebuffer_release(info); 363 - 364 - return 0; 365 363 } 366 364 367 365 static const struct of_device_id clps711x_fb_dt_ids[] = { ··· 374 376 .of_match_table = clps711x_fb_dt_ids, 375 377 }, 376 378 .probe = clps711x_fb_probe, 377 - .remove = clps711x_fb_remove, 379 + .remove_new = clps711x_fb_remove, 378 380 }; 379 381 module_platform_driver(clps711x_fb_driver); 380 382
+2 -4
drivers/video/fbdev/cobalt_lcdfb.c
··· 324 324 return 0; 325 325 } 326 326 327 - static int cobalt_lcdfb_remove(struct platform_device *dev) 327 + static void cobalt_lcdfb_remove(struct platform_device *dev) 328 328 { 329 329 struct fb_info *info; 330 330 ··· 333 333 unregister_framebuffer(info); 334 334 framebuffer_release(info); 335 335 } 336 - 337 - return 0; 338 336 } 339 337 340 338 static struct platform_driver cobalt_lcdfb_driver = { 341 339 .probe = cobalt_lcdfb_probe, 342 - .remove = cobalt_lcdfb_remove, 340 + .remove_new = cobalt_lcdfb_remove, 343 341 .driver = { 344 342 .name = "cobalt-lcd", 345 343 },
+2 -4
drivers/video/fbdev/da8xx-fb.c
··· 1064 1064 } 1065 1065 #endif 1066 1066 1067 - static int fb_remove(struct platform_device *dev) 1067 + static void fb_remove(struct platform_device *dev) 1068 1068 { 1069 1069 struct fb_info *info = platform_get_drvdata(dev); 1070 1070 struct da8xx_fb_par *par = info->par; ··· 1091 1091 pm_runtime_put_sync(&dev->dev); 1092 1092 pm_runtime_disable(&dev->dev); 1093 1093 framebuffer_release(info); 1094 - 1095 - return 0; 1096 1094 } 1097 1095 1098 1096 /* ··· 1655 1657 1656 1658 static struct platform_driver da8xx_fb_driver = { 1657 1659 .probe = fb_probe, 1658 - .remove = fb_remove, 1660 + .remove_new = fb_remove, 1659 1661 .driver = { 1660 1662 .name = DRIVER_NAME, 1661 1663 .pm = &fb_pm_ops,
+2 -4
drivers/video/fbdev/efifb.c
··· 621 621 return err; 622 622 } 623 623 624 - static int efifb_remove(struct platform_device *pdev) 624 + static void efifb_remove(struct platform_device *pdev) 625 625 { 626 626 struct fb_info *info = platform_get_drvdata(pdev); 627 627 628 628 /* efifb_destroy takes care of info cleanup */ 629 629 unregister_framebuffer(info); 630 630 sysfs_remove_groups(&pdev->dev.kobj, efifb_groups); 631 - 632 - return 0; 633 631 } 634 632 635 633 static struct platform_driver efifb_driver = { ··· 635 637 .name = "efi-framebuffer", 636 638 }, 637 639 .probe = efifb_probe, 638 - .remove = efifb_remove, 640 + .remove_new = efifb_remove, 639 641 }; 640 642 641 643 builtin_platform_driver(efifb_driver);
+2 -4
drivers/video/fbdev/ep93xx-fb.c
··· 573 573 return err; 574 574 } 575 575 576 - static int ep93xxfb_remove(struct platform_device *pdev) 576 + static void ep93xxfb_remove(struct platform_device *pdev) 577 577 { 578 578 struct fb_info *info = platform_get_drvdata(pdev); 579 579 struct ep93xx_fbi *fbi = info->par; ··· 587 587 fbi->mach_info->teardown(pdev); 588 588 589 589 kfree(info); 590 - 591 - return 0; 592 590 } 593 591 594 592 static struct platform_driver ep93xxfb_driver = { 595 593 .probe = ep93xxfb_probe, 596 - .remove = ep93xxfb_remove, 594 + .remove_new = ep93xxfb_remove, 597 595 .driver = { 598 596 .name = "ep93xx-fb", 599 597 },
+2 -4
drivers/video/fbdev/ffb.c
··· 1023 1023 return err; 1024 1024 } 1025 1025 1026 - static int ffb_remove(struct platform_device *op) 1026 + static void ffb_remove(struct platform_device *op) 1027 1027 { 1028 1028 struct fb_info *info = dev_get_drvdata(&op->dev); 1029 1029 struct ffb_par *par = info->par; ··· 1035 1035 of_iounmap(&op->resource[1], par->dac, sizeof(struct ffb_dac)); 1036 1036 1037 1037 framebuffer_release(info); 1038 - 1039 - return 0; 1040 1038 } 1041 1039 1042 1040 static const struct of_device_id ffb_match[] = { ··· 1054 1056 .of_match_table = ffb_match, 1055 1057 }, 1056 1058 .probe = ffb_probe, 1057 - .remove = ffb_remove, 1059 + .remove_new = ffb_remove, 1058 1060 }; 1059 1061 1060 1062 static int __init ffb_init(void)
+2 -4
drivers/video/fbdev/fsl-diu-fb.c
··· 1823 1823 return ret; 1824 1824 } 1825 1825 1826 - static int fsl_diu_remove(struct platform_device *pdev) 1826 + static void fsl_diu_remove(struct platform_device *pdev) 1827 1827 { 1828 1828 struct fsl_diu_data *data; 1829 1829 int i; ··· 1837 1837 uninstall_fb(&data->fsl_diu_info[i]); 1838 1838 1839 1839 iounmap(data->diu_reg); 1840 - 1841 - return 0; 1842 1840 } 1843 1841 1844 1842 #ifndef MODULE ··· 1883 1885 .of_match_table = fsl_diu_match, 1884 1886 }, 1885 1887 .probe = fsl_diu_probe, 1886 - .remove = fsl_diu_remove, 1888 + .remove_new = fsl_diu_remove, 1887 1889 .suspend = fsl_diu_suspend, 1888 1890 .resume = fsl_diu_resume, 1889 1891 };
+2 -4
drivers/video/fbdev/gbefb.c
··· 1233 1233 return ret; 1234 1234 } 1235 1235 1236 - static int gbefb_remove(struct platform_device* p_dev) 1236 + static void gbefb_remove(struct platform_device* p_dev) 1237 1237 { 1238 1238 struct fb_info *info = platform_get_drvdata(p_dev); 1239 1239 struct gbefb_par *par = info->par; ··· 1243 1243 arch_phys_wc_del(par->wc_cookie); 1244 1244 release_mem_region(GBE_BASE, sizeof(struct sgi_gbe)); 1245 1245 framebuffer_release(info); 1246 - 1247 - return 0; 1248 1246 } 1249 1247 1250 1248 static struct platform_driver gbefb_driver = { 1251 1249 .probe = gbefb_probe, 1252 - .remove = gbefb_remove, 1250 + .remove_new = gbefb_remove, 1253 1251 .driver = { 1254 1252 .name = "gbefb", 1255 1253 .dev_groups = gbefb_groups,
+2 -3
drivers/video/fbdev/goldfishfb.c
··· 283 283 return ret; 284 284 } 285 285 286 - static int goldfish_fb_remove(struct platform_device *pdev) 286 + static void goldfish_fb_remove(struct platform_device *pdev) 287 287 { 288 288 size_t framesize; 289 289 struct goldfish_fb *fb = platform_get_drvdata(pdev); ··· 296 296 fb->fb.fix.smem_start); 297 297 iounmap(fb->reg_base); 298 298 kfree(fb); 299 - return 0; 300 299 } 301 300 302 301 static const struct of_device_id goldfish_fb_of_match[] = { ··· 314 315 315 316 static struct platform_driver goldfish_fb_driver = { 316 317 .probe = goldfish_fb_probe, 317 - .remove = goldfish_fb_remove, 318 + .remove_new = goldfish_fb_remove, 318 319 .driver = { 319 320 .name = "goldfish_fb", 320 321 .of_match_table = goldfish_fb_of_match,
+2 -4
drivers/video/fbdev/grvga.c
··· 504 504 return retval; 505 505 } 506 506 507 - static int grvga_remove(struct platform_device *device) 507 + static void grvga_remove(struct platform_device *device) 508 508 { 509 509 struct fb_info *info = dev_get_drvdata(&device->dev); 510 510 struct grvga_par *par; ··· 524 524 525 525 framebuffer_release(info); 526 526 } 527 - 528 - return 0; 529 527 } 530 528 531 529 static struct of_device_id svgactrl_of_match[] = { ··· 543 545 .of_match_table = svgactrl_of_match, 544 546 }, 545 547 .probe = grvga_probe, 546 - .remove = grvga_remove, 548 + .remove_new = grvga_remove, 547 549 }; 548 550 549 551 module_platform_driver(grvga_driver);
+2 -3
drivers/video/fbdev/hecubafb.c
··· 279 279 return retval; 280 280 } 281 281 282 - static int hecubafb_remove(struct platform_device *dev) 282 + static void hecubafb_remove(struct platform_device *dev) 283 283 { 284 284 struct fb_info *info = platform_get_drvdata(dev); 285 285 ··· 293 293 module_put(par->board->owner); 294 294 framebuffer_release(info); 295 295 } 296 - return 0; 297 296 } 298 297 299 298 static struct platform_driver hecubafb_driver = { 300 299 .probe = hecubafb_probe, 301 - .remove = hecubafb_remove, 300 + .remove_new = hecubafb_remove, 302 301 .driver = { 303 302 .name = "hecubafb", 304 303 },
+2 -4
drivers/video/fbdev/hgafb.c
··· 595 595 return 0; 596 596 } 597 597 598 - static int hgafb_remove(struct platform_device *pdev) 598 + static void hgafb_remove(struct platform_device *pdev) 599 599 { 600 600 struct fb_info *info = platform_get_drvdata(pdev); 601 601 ··· 614 614 615 615 if (release_io_port) 616 616 release_region(0x3bf, 1); 617 - 618 - return 0; 619 617 } 620 618 621 619 static struct platform_driver hgafb_driver = { 622 620 .probe = hgafb_probe, 623 - .remove = hgafb_remove, 621 + .remove_new = hgafb_remove, 624 622 .driver = { 625 623 .name = "hgafb", 626 624 },
+2 -4
drivers/video/fbdev/hitfb.c
··· 415 415 return ret; 416 416 } 417 417 418 - static int hitfb_remove(struct platform_device *dev) 418 + static void hitfb_remove(struct platform_device *dev) 419 419 { 420 420 struct fb_info *info = platform_get_drvdata(dev); 421 421 422 422 unregister_framebuffer(info); 423 423 fb_dealloc_cmap(&info->cmap); 424 424 framebuffer_release(info); 425 - 426 - return 0; 427 425 } 428 426 429 427 static int hitfb_suspend(struct device *dev) ··· 458 460 459 461 static struct platform_driver hitfb_driver = { 460 462 .probe = hitfb_probe, 461 - .remove = hitfb_remove, 463 + .remove_new = hitfb_remove, 462 464 .driver = { 463 465 .name = "hitfb", 464 466 .pm = &hitfb_dev_pm_ops,
+2 -4
drivers/video/fbdev/imxfb.c
··· 1051 1051 return ret; 1052 1052 } 1053 1053 1054 - static int imxfb_remove(struct platform_device *pdev) 1054 + static void imxfb_remove(struct platform_device *pdev) 1055 1055 { 1056 1056 struct fb_info *info = platform_get_drvdata(pdev); 1057 1057 struct imxfb_info *fbi = info->par; ··· 1064 1064 fbi->map_dma); 1065 1065 kfree(info->pseudo_palette); 1066 1066 framebuffer_release(info); 1067 - 1068 - return 0; 1069 1067 } 1070 1068 1071 1069 static int __maybe_unused imxfb_suspend(struct device *dev) ··· 1095 1097 .pm = &imxfb_pm_ops, 1096 1098 }, 1097 1099 .probe = imxfb_probe, 1098 - .remove = imxfb_remove, 1100 + .remove_new = imxfb_remove, 1099 1101 .id_table = imxfb_devtype, 1100 1102 }; 1101 1103 module_platform_driver(imxfb_driver);
+2 -4
drivers/video/fbdev/leo.c
··· 637 637 return err; 638 638 } 639 639 640 - static int leo_remove(struct platform_device *op) 640 + static void leo_remove(struct platform_device *op) 641 641 { 642 642 struct fb_info *info = dev_get_drvdata(&op->dev); 643 643 struct leo_par *par = info->par; ··· 648 648 leo_unmap_regs(op, info, par); 649 649 650 650 framebuffer_release(info); 651 - 652 - return 0; 653 651 } 654 652 655 653 static const struct of_device_id leo_match[] = { ··· 664 666 .of_match_table = leo_match, 665 667 }, 666 668 .probe = leo_probe, 667 - .remove = leo_remove, 669 + .remove_new = leo_remove, 668 670 }; 669 671 670 672 static int __init leo_init(void)
+2 -3
drivers/video/fbdev/mb862xx/mb862xxfbdrv.c
··· 784 784 return ret; 785 785 } 786 786 787 - static int of_platform_mb862xx_remove(struct platform_device *ofdev) 787 + static void of_platform_mb862xx_remove(struct platform_device *ofdev) 788 788 { 789 789 struct fb_info *fbi = dev_get_drvdata(&ofdev->dev); 790 790 struct mb862xxfb_par *par = fbi->par; ··· 814 814 815 815 release_mem_region(par->res->start, res_size); 816 816 framebuffer_release(fbi); 817 - return 0; 818 817 } 819 818 820 819 /* ··· 837 838 .of_match_table = of_platform_mb862xx_tbl, 838 839 }, 839 840 .probe = of_platform_mb862xx_probe, 840 - .remove = of_platform_mb862xx_remove, 841 + .remove_new = of_platform_mb862xx_remove, 841 842 }; 842 843 #endif 843 844
+2 -3
drivers/video/fbdev/metronomefb.c
··· 744 744 return retval; 745 745 } 746 746 747 - static int metronomefb_remove(struct platform_device *dev) 747 + static void metronomefb_remove(struct platform_device *dev) 748 748 { 749 749 struct fb_info *info = platform_get_drvdata(dev); 750 750 ··· 761 761 dev_dbg(&dev->dev, "calling release\n"); 762 762 framebuffer_release(info); 763 763 } 764 - return 0; 765 764 } 766 765 767 766 static struct platform_driver metronomefb_driver = { 768 767 .probe = metronomefb_probe, 769 - .remove = metronomefb_remove, 768 + .remove_new = metronomefb_remove, 770 769 .driver = { 771 770 .name = "metronomefb", 772 771 },
+1 -1
drivers/video/fbdev/mmp/hw/mmp_ctrl.c
··· 514 514 /* get clock */ 515 515 ctrl->clk = devm_clk_get(ctrl->dev, mi->clk_name); 516 516 if (IS_ERR(ctrl->clk)) { 517 + ret = PTR_ERR(ctrl->clk); 517 518 dev_err_probe(ctrl->dev, ret, 518 519 "unable to get clk %s\n", mi->clk_name); 519 - ret = -ENOENT; 520 520 goto failed; 521 521 } 522 522 clk_prepare_enable(ctrl->clk);
+2 -3
drivers/video/fbdev/mx3fb.c
··· 1616 1616 return ret; 1617 1617 } 1618 1618 1619 - static int mx3fb_remove(struct platform_device *dev) 1619 + static void mx3fb_remove(struct platform_device *dev) 1620 1620 { 1621 1621 struct mx3fb_data *mx3fb = platform_get_drvdata(dev); 1622 1622 struct fb_info *fbi = mx3fb->fbi; ··· 1632 1632 dmaengine_put(); 1633 1633 1634 1634 iounmap(mx3fb->reg_base); 1635 - return 0; 1636 1635 } 1637 1636 1638 1637 static struct platform_driver mx3fb_driver = { ··· 1639 1640 .name = MX3FB_NAME, 1640 1641 }, 1641 1642 .probe = mx3fb_probe, 1642 - .remove = mx3fb_remove, 1643 + .remove_new = mx3fb_remove, 1643 1644 .suspend = mx3fb_suspend, 1644 1645 .resume = mx3fb_resume, 1645 1646 };
+2 -4
drivers/video/fbdev/ocfb.c
··· 370 370 return ret; 371 371 } 372 372 373 - static int ocfb_remove(struct platform_device *pdev) 373 + static void ocfb_remove(struct platform_device *pdev) 374 374 { 375 375 struct ocfb_dev *fbdev = platform_get_drvdata(pdev); 376 376 ··· 383 383 ocfb_writereg(fbdev, OCFB_CTRL, 0); 384 384 385 385 platform_set_drvdata(pdev, NULL); 386 - 387 - return 0; 388 386 } 389 387 390 388 static const struct of_device_id ocfb_match[] = { ··· 393 395 394 396 static struct platform_driver ocfb_driver = { 395 397 .probe = ocfb_probe, 396 - .remove = ocfb_remove, 398 + .remove_new = ocfb_remove, 397 399 .driver = { 398 400 .name = "ocfb_fb", 399 401 .of_match_table = ocfb_match,
+3 -5
drivers/video/fbdev/offb.c
··· 658 658 } 659 659 } 660 660 661 - static int offb_remove(struct platform_device *pdev) 661 + static void offb_remove(struct platform_device *pdev) 662 662 { 663 663 struct fb_info *info = platform_get_drvdata(pdev); 664 664 665 665 if (info) 666 666 unregister_framebuffer(info); 667 - 668 - return 0; 669 667 } 670 668 671 669 static int offb_probe_bootx_noscreen(struct platform_device *pdev) ··· 678 680 .name = "bootx-noscreen", 679 681 }, 680 682 .probe = offb_probe_bootx_noscreen, 681 - .remove = offb_remove, 683 + .remove_new = offb_remove, 682 684 }; 683 685 684 686 static int offb_probe_display(struct platform_device *pdev) ··· 700 702 .of_match_table = offb_of_match_display, 701 703 }, 702 704 .probe = offb_probe_display, 703 - .remove = offb_remove, 705 + .remove_new = offb_remove, 704 706 }; 705 707 706 708 static int __init offb_init(void)
+2 -4
drivers/video/fbdev/omap/omapfb_main.c
··· 1799 1799 EXPORT_SYMBOL_GPL(omapfb_register_panel); 1800 1800 1801 1801 /* Called when the device is being detached from the driver */ 1802 - static int omapfb_remove(struct platform_device *pdev) 1802 + static void omapfb_remove(struct platform_device *pdev) 1803 1803 { 1804 1804 struct omapfb_device *fbdev = platform_get_drvdata(pdev); 1805 1805 enum omapfb_state saved_state = fbdev->state; ··· 1811 1811 1812 1812 platform_device_unregister(&omapdss_device); 1813 1813 fbdev->dssdev = NULL; 1814 - 1815 - return 0; 1816 1814 } 1817 1815 1818 1816 /* PM suspend */ ··· 1835 1837 1836 1838 static struct platform_driver omapfb_driver = { 1837 1839 .probe = omapfb_probe, 1838 - .remove = omapfb_remove, 1840 + .remove_new = omapfb_remove, 1839 1841 .suspend = omapfb_suspend, 1840 1842 .resume = omapfb_resume, 1841 1843 .driver = {
+2 -4
drivers/video/fbdev/omap2/omapfb/dss/core.c
··· 171 171 return 0; 172 172 } 173 173 174 - static int omap_dss_remove(struct platform_device *pdev) 174 + static void omap_dss_remove(struct platform_device *pdev) 175 175 { 176 176 unregister_pm_notifier(&omap_dss_pm_notif_block); 177 177 178 178 dss_uninitialize_debugfs(); 179 - 180 - return 0; 181 179 } 182 180 183 181 static void omap_dss_shutdown(struct platform_device *pdev) ··· 185 187 } 186 188 187 189 static struct platform_driver omap_dss_driver = { 188 - .remove = omap_dss_remove, 190 + .remove_new = omap_dss_remove, 189 191 .shutdown = omap_dss_shutdown, 190 192 .driver = { 191 193 .name = "omapdss",
+2 -3
drivers/video/fbdev/omap2/omapfb/dss/dispc.c
··· 4017 4017 return component_add(&pdev->dev, &dispc_component_ops); 4018 4018 } 4019 4019 4020 - static int dispc_remove(struct platform_device *pdev) 4020 + static void dispc_remove(struct platform_device *pdev) 4021 4021 { 4022 4022 component_del(&pdev->dev, &dispc_component_ops); 4023 - return 0; 4024 4023 } 4025 4024 4026 4025 static int dispc_runtime_suspend(struct device *dev) ··· 4072 4073 4073 4074 static struct platform_driver omap_dispchw_driver = { 4074 4075 .probe = dispc_probe, 4075 - .remove = dispc_remove, 4076 + .remove_new = dispc_remove, 4076 4077 .driver = { 4077 4078 .name = "omapdss_dispc", 4078 4079 .pm = &dispc_pm_ops,
+2 -3
drivers/video/fbdev/omap2/omapfb/dss/dpi.c
··· 810 810 return component_add(&pdev->dev, &dpi_component_ops); 811 811 } 812 812 813 - static int dpi_remove(struct platform_device *pdev) 813 + static void dpi_remove(struct platform_device *pdev) 814 814 { 815 815 component_del(&pdev->dev, &dpi_component_ops); 816 - return 0; 817 816 } 818 817 819 818 static struct platform_driver omap_dpi_driver = { 820 819 .probe = dpi_probe, 821 - .remove = dpi_remove, 820 + .remove_new = dpi_remove, 822 821 .driver = { 823 822 .name = "omapdss_dpi", 824 823 .suppress_bind_attrs = true,
+2 -3
drivers/video/fbdev/omap2/omapfb/dss/dsi.c
··· 5495 5495 return component_add(&pdev->dev, &dsi_component_ops); 5496 5496 } 5497 5497 5498 - static int dsi_remove(struct platform_device *pdev) 5498 + static void dsi_remove(struct platform_device *pdev) 5499 5499 { 5500 5500 component_del(&pdev->dev, &dsi_component_ops); 5501 - return 0; 5502 5501 } 5503 5502 5504 5503 static int dsi_runtime_suspend(struct device *dev) ··· 5564 5565 5565 5566 static struct platform_driver omap_dsihw_driver = { 5566 5567 .probe = dsi_probe, 5567 - .remove = dsi_remove, 5568 + .remove_new = dsi_remove, 5568 5569 .driver = { 5569 5570 .name = "omapdss_dsi", 5570 5571 .pm = &dsi_pm_ops,
+2 -3
drivers/video/fbdev/omap2/omapfb/dss/dss.c
··· 1224 1224 return 0; 1225 1225 } 1226 1226 1227 - static int dss_remove(struct platform_device *pdev) 1227 + static void dss_remove(struct platform_device *pdev) 1228 1228 { 1229 1229 component_master_del(&pdev->dev, &dss_component_ops); 1230 - return 0; 1231 1230 } 1232 1231 1233 1232 static int dss_runtime_suspend(struct device *dev) ··· 1278 1279 1279 1280 static struct platform_driver omap_dsshw_driver = { 1280 1281 .probe = dss_probe, 1281 - .remove = dss_remove, 1282 + .remove_new = dss_remove, 1282 1283 .driver = { 1283 1284 .name = "omapdss_dss", 1284 1285 .pm = &dss_pm_ops,
+2 -3
drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c
··· 756 756 return component_add(&pdev->dev, &hdmi4_component_ops); 757 757 } 758 758 759 - static int hdmi4_remove(struct platform_device *pdev) 759 + static void hdmi4_remove(struct platform_device *pdev) 760 760 { 761 761 component_del(&pdev->dev, &hdmi4_component_ops); 762 - return 0; 763 762 } 764 763 765 764 static int hdmi_runtime_suspend(struct device *dev) ··· 791 792 792 793 static struct platform_driver omapdss_hdmihw_driver = { 793 794 .probe = hdmi4_probe, 794 - .remove = hdmi4_remove, 795 + .remove_new = hdmi4_remove, 795 796 .driver = { 796 797 .name = "omapdss_hdmi", 797 798 .pm = &hdmi_pm_ops,
+2 -3
drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c
··· 797 797 return component_add(&pdev->dev, &hdmi5_component_ops); 798 798 } 799 799 800 - static int hdmi5_remove(struct platform_device *pdev) 800 + static void hdmi5_remove(struct platform_device *pdev) 801 801 { 802 802 component_del(&pdev->dev, &hdmi5_component_ops); 803 - return 0; 804 803 } 805 804 806 805 static int hdmi_runtime_suspend(struct device *dev) ··· 833 834 834 835 static struct platform_driver omapdss_hdmihw_driver = { 835 836 .probe = hdmi5_probe, 836 - .remove = hdmi5_remove, 837 + .remove_new = hdmi5_remove, 837 838 .driver = { 838 839 .name = "omapdss_hdmi5", 839 840 .pm = &hdmi_pm_ops,
+2 -3
drivers/video/fbdev/omap2/omapfb/dss/sdi.c
··· 375 375 return component_add(&pdev->dev, &sdi_component_ops); 376 376 } 377 377 378 - static int sdi_remove(struct platform_device *pdev) 378 + static void sdi_remove(struct platform_device *pdev) 379 379 { 380 380 component_del(&pdev->dev, &sdi_component_ops); 381 - return 0; 382 381 } 383 382 384 383 static struct platform_driver omap_sdi_driver = { 385 384 .probe = sdi_probe, 386 - .remove = sdi_remove, 385 + .remove_new = sdi_remove, 387 386 .driver = { 388 387 .name = "omapdss_sdi", 389 388 .suppress_bind_attrs = true,
+2 -3
drivers/video/fbdev/omap2/omapfb/dss/venc.c
··· 880 880 return component_add(&pdev->dev, &venc_component_ops); 881 881 } 882 882 883 - static int venc_remove(struct platform_device *pdev) 883 + static void venc_remove(struct platform_device *pdev) 884 884 { 885 885 component_del(&pdev->dev, &venc_component_ops); 886 - return 0; 887 886 } 888 887 889 888 static int venc_runtime_suspend(struct device *dev) ··· 921 922 922 923 static struct platform_driver omap_venchw_driver = { 923 924 .probe = venc_probe, 924 - .remove = venc_remove, 925 + .remove_new = venc_remove, 925 926 .driver = { 926 927 .name = "omapdss_venc", 927 928 .pm = &venc_pm_ops,
+2 -4
drivers/video/fbdev/omap2/omapfb/omapfb-main.c
··· 2599 2599 return r; 2600 2600 } 2601 2601 2602 - static int omapfb_remove(struct platform_device *pdev) 2602 + static void omapfb_remove(struct platform_device *pdev) 2603 2603 { 2604 2604 struct omapfb2_device *fbdev = platform_get_drvdata(pdev); 2605 2605 ··· 2610 2610 omapfb_free_resources(fbdev); 2611 2611 2612 2612 omapdss_compat_uninit(); 2613 - 2614 - return 0; 2615 2613 } 2616 2614 2617 2615 static struct platform_driver omapfb_driver = { 2618 2616 .probe = omapfb_probe, 2619 - .remove = omapfb_remove, 2617 + .remove_new = omapfb_remove, 2620 2618 .driver = { 2621 2619 .name = "omapfb", 2622 2620 },
+2 -4
drivers/video/fbdev/p9100.c
··· 327 327 return err; 328 328 } 329 329 330 - static int p9100_remove(struct platform_device *op) 330 + static void p9100_remove(struct platform_device *op) 331 331 { 332 332 struct fb_info *info = dev_get_drvdata(&op->dev); 333 333 struct p9100_par *par = info->par; ··· 339 339 of_iounmap(&op->resource[2], info->screen_base, info->fix.smem_len); 340 340 341 341 framebuffer_release(info); 342 - 343 - return 0; 344 342 } 345 343 346 344 static const struct of_device_id p9100_match[] = { ··· 355 357 .of_match_table = p9100_match, 356 358 }, 357 359 .probe = p9100_probe, 358 - .remove = p9100_remove, 360 + .remove_new = p9100_remove, 359 361 }; 360 362 361 363 static int __init p9100_init(void)
+2 -4
drivers/video/fbdev/platinumfb.c
··· 636 636 return rc; 637 637 } 638 638 639 - static int platinumfb_remove(struct platform_device* odev) 639 + static void platinumfb_remove(struct platform_device* odev) 640 640 { 641 641 struct fb_info *info = dev_get_drvdata(&odev->dev); 642 642 struct fb_info_platinum *pinfo = info->par; ··· 654 654 release_mem_region(pinfo->cmap_regs_phys, 0x1000); 655 655 656 656 framebuffer_release(info); 657 - 658 - return 0; 659 657 } 660 658 661 659 static struct of_device_id platinumfb_match[] = ··· 671 673 .of_match_table = platinumfb_match, 672 674 }, 673 675 .probe = platinumfb_probe, 674 - .remove = platinumfb_remove, 676 + .remove_new = platinumfb_remove, 675 677 }; 676 678 677 679 static int __init platinumfb_init(void)
+1
drivers/video/fbdev/ps3fb.c
··· 936 936 937 937 938 938 static const struct fb_ops ps3fb_ops = { 939 + .owner = THIS_MODULE, 939 940 .fb_open = ps3fb_open, 940 941 .fb_release = ps3fb_release, 941 942 .fb_read = fb_sys_read,
+3 -5
drivers/video/fbdev/pxa168fb.c
··· 765 765 return ret; 766 766 } 767 767 768 - static int pxa168fb_remove(struct platform_device *pdev) 768 + static void pxa168fb_remove(struct platform_device *pdev) 769 769 { 770 770 struct pxa168fb_info *fbi = platform_get_drvdata(pdev); 771 771 struct fb_info *info; 772 772 unsigned int data; 773 773 774 774 if (!fbi) 775 - return 0; 775 + return; 776 776 777 777 /* disable DMA transfer */ 778 778 data = readl(fbi->reg_base + LCD_SPU_DMA_CTRL0); ··· 794 794 clk_disable_unprepare(fbi->clk); 795 795 796 796 framebuffer_release(info); 797 - 798 - return 0; 799 797 } 800 798 801 799 static struct platform_driver pxa168fb_driver = { ··· 801 803 .name = "pxa168-fb", 802 804 }, 803 805 .probe = pxa168fb_probe, 804 - .remove = pxa168fb_remove, 806 + .remove_new = pxa168fb_remove, 805 807 }; 806 808 807 809 module_platform_driver(pxa168fb_driver);
+2 -4
drivers/video/fbdev/pxa3xx-gcu.c
··· 675 675 return ret; 676 676 } 677 677 678 - static int pxa3xx_gcu_remove(struct platform_device *pdev) 678 + static void pxa3xx_gcu_remove(struct platform_device *pdev) 679 679 { 680 680 struct pxa3xx_gcu_priv *priv = platform_get_drvdata(pdev); 681 681 struct device *dev = &pdev->dev; ··· 685 685 dma_free_coherent(dev, SHARED_SIZE, priv->shared, priv->shared_phys); 686 686 clk_disable_unprepare(priv->clk); 687 687 pxa3xx_gcu_free_buffers(dev, priv); 688 - 689 - return 0; 690 688 } 691 689 692 690 #ifdef CONFIG_OF ··· 697 699 698 700 static struct platform_driver pxa3xx_gcu_driver = { 699 701 .probe = pxa3xx_gcu_probe, 700 - .remove = pxa3xx_gcu_remove, 702 + .remove_new = pxa3xx_gcu_remove, 701 703 .driver = { 702 704 .name = DRV_NAME, 703 705 .of_match_table = of_match_ptr(pxa3xx_gcu_of_match),
+3 -5
drivers/video/fbdev/pxafb.c
··· 2396 2396 return ret; 2397 2397 } 2398 2398 2399 - static int pxafb_remove(struct platform_device *dev) 2399 + static void pxafb_remove(struct platform_device *dev) 2400 2400 { 2401 2401 struct pxafb_info *fbi = platform_get_drvdata(dev); 2402 2402 struct fb_info *info; 2403 2403 2404 2404 if (!fbi) 2405 - return 0; 2405 + return; 2406 2406 2407 2407 info = &fbi->fb; 2408 2408 ··· 2418 2418 2419 2419 dma_free_coherent(&dev->dev, fbi->dma_buff_size, fbi->dma_buff, 2420 2420 fbi->dma_buff_phys); 2421 - 2422 - return 0; 2423 2421 } 2424 2422 2425 2423 static const struct of_device_id pxafb_of_dev_id[] = { ··· 2430 2432 2431 2433 static struct platform_driver pxafb_driver = { 2432 2434 .probe = pxafb_probe, 2433 - .remove = pxafb_remove, 2435 + .remove_new = pxafb_remove, 2434 2436 .driver = { 2435 2437 .name = "pxa2xx-fb", 2436 2438 .of_match_table = pxafb_of_dev_id,
+2 -3
drivers/video/fbdev/s1d13xxxfb.c
··· 748 748 resource_size(&pdev->resource[1])); 749 749 } 750 750 751 - static int s1d13xxxfb_remove(struct platform_device *pdev) 751 + static void s1d13xxxfb_remove(struct platform_device *pdev) 752 752 { 753 753 struct fb_info *info = platform_get_drvdata(pdev); 754 754 755 755 unregister_framebuffer(info); 756 756 __s1d13xxxfb_remove(pdev); 757 - return 0; 758 757 } 759 758 760 759 static int s1d13xxxfb_probe(struct platform_device *pdev) ··· 994 995 995 996 static struct platform_driver s1d13xxxfb_driver = { 996 997 .probe = s1d13xxxfb_probe, 997 - .remove = s1d13xxxfb_remove, 998 + .remove_new = s1d13xxxfb_remove, 998 999 #ifdef CONFIG_PM 999 1000 .suspend = s1d13xxxfb_suspend, 1000 1001 .resume = s1d13xxxfb_resume,
+2 -4
drivers/video/fbdev/s3c-fb.c
··· 1507 1507 * Shutdown and then release all the resources that the driver allocated 1508 1508 * on initialisation. 1509 1509 */ 1510 - static int s3c_fb_remove(struct platform_device *pdev) 1510 + static void s3c_fb_remove(struct platform_device *pdev) 1511 1511 { 1512 1512 struct s3c_fb *sfb = platform_get_drvdata(pdev); 1513 1513 int win; ··· 1525 1525 1526 1526 pm_runtime_put_sync(sfb->dev); 1527 1527 pm_runtime_disable(sfb->dev); 1528 - 1529 - return 0; 1530 1528 } 1531 1529 1532 1530 #ifdef CONFIG_PM_SLEEP ··· 1792 1794 1793 1795 static struct platform_driver s3c_fb_driver = { 1794 1796 .probe = s3c_fb_probe, 1795 - .remove = s3c_fb_remove, 1797 + .remove_new = s3c_fb_remove, 1796 1798 .id_table = s3c_fb_driver_ids, 1797 1799 .driver = { 1798 1800 .name = "s3c-fb",
+2 -4
drivers/video/fbdev/sh7760fb.c
··· 554 554 return ret; 555 555 } 556 556 557 - static int sh7760fb_remove(struct platform_device *dev) 557 + static void sh7760fb_remove(struct platform_device *dev) 558 558 { 559 559 struct fb_info *info = platform_get_drvdata(dev); 560 560 struct sh7760fb_par *par = info->par; ··· 568 568 iounmap(par->base); 569 569 release_mem_region(par->ioarea->start, resource_size(par->ioarea)); 570 570 framebuffer_release(info); 571 - 572 - return 0; 573 571 } 574 572 575 573 static struct platform_driver sh7760_lcdc_driver = { ··· 575 577 .name = "sh7760-lcdc", 576 578 }, 577 579 .probe = sh7760fb_probe, 578 - .remove = sh7760fb_remove, 580 + .remove_new = sh7760fb_remove, 579 581 }; 580 582 581 583 module_platform_driver(sh7760_lcdc_driver);
+2 -3
drivers/video/fbdev/sh_mobile_lcdcfb.c
··· 2249 2249 .sync = FB_SYNC_VERT_HIGH_ACT | FB_SYNC_HOR_HIGH_ACT, 2250 2250 }; 2251 2251 2252 - static int sh_mobile_lcdc_remove(struct platform_device *pdev) 2252 + static void sh_mobile_lcdc_remove(struct platform_device *pdev) 2253 2253 { 2254 2254 struct sh_mobile_lcdc_priv *priv = platform_get_drvdata(pdev); 2255 2255 unsigned int i; ··· 2305 2305 if (priv->irq) 2306 2306 free_irq(priv->irq, priv); 2307 2307 kfree(priv); 2308 - return 0; 2309 2308 } 2310 2309 2311 2310 static int sh_mobile_lcdc_check_interface(struct sh_mobile_lcdc_chan *ch) ··· 2655 2656 .pm = &sh_mobile_lcdc_dev_pm_ops, 2656 2657 }, 2657 2658 .probe = sh_mobile_lcdc_probe, 2658 - .remove = sh_mobile_lcdc_remove, 2659 + .remove_new = sh_mobile_lcdc_remove, 2659 2660 }; 2660 2661 2661 2662 module_platform_driver(sh_mobile_lcdc_driver);
+2 -4
drivers/video/fbdev/simplefb.c
··· 538 538 return ret; 539 539 } 540 540 541 - static int simplefb_remove(struct platform_device *pdev) 541 + static void simplefb_remove(struct platform_device *pdev) 542 542 { 543 543 struct fb_info *info = platform_get_drvdata(pdev); 544 544 545 545 /* simplefb_destroy takes care of info cleanup */ 546 546 unregister_framebuffer(info); 547 - 548 - return 0; 549 547 } 550 548 551 549 static const struct of_device_id simplefb_of_match[] = { ··· 558 560 .of_match_table = simplefb_of_match, 559 561 }, 560 562 .probe = simplefb_probe, 561 - .remove = simplefb_remove, 563 + .remove_new = simplefb_remove, 562 564 }; 563 565 564 566 module_platform_driver(simplefb_driver);
+2 -4
drivers/video/fbdev/sm501fb.c
··· 2045 2045 /* 2046 2046 * Cleanup 2047 2047 */ 2048 - static int sm501fb_remove(struct platform_device *pdev) 2048 + static void sm501fb_remove(struct platform_device *pdev) 2049 2049 { 2050 2050 struct sm501fb_info *info = platform_get_drvdata(pdev); 2051 2051 struct fb_info *fbinfo_crt = info->fb[0]; ··· 2064 2064 2065 2065 framebuffer_release(fbinfo_pnl); 2066 2066 framebuffer_release(fbinfo_crt); 2067 - 2068 - return 0; 2069 2067 } 2070 2068 2071 2069 #ifdef CONFIG_PM ··· 2207 2209 2208 2210 static struct platform_driver sm501fb_driver = { 2209 2211 .probe = sm501fb_probe, 2210 - .remove = sm501fb_remove, 2212 + .remove_new = sm501fb_remove, 2211 2213 .suspend = sm501fb_suspend, 2212 2214 .resume = sm501fb_resume, 2213 2215 .driver = {
+2 -4
drivers/video/fbdev/tcx.c
··· 486 486 return err; 487 487 } 488 488 489 - static int tcx_remove(struct platform_device *op) 489 + static void tcx_remove(struct platform_device *op) 490 490 { 491 491 struct fb_info *info = dev_get_drvdata(&op->dev); 492 492 struct tcx_par *par = info->par; ··· 497 497 tcx_unmap_regs(op, info, par); 498 498 499 499 framebuffer_release(info); 500 - 501 - return 0; 502 500 } 503 501 504 502 static const struct of_device_id tcx_match[] = { ··· 513 515 .of_match_table = tcx_match, 514 516 }, 515 517 .probe = tcx_probe, 516 - .remove = tcx_remove, 518 + .remove_new = tcx_remove, 517 519 }; 518 520 519 521 static int __init tcx_init(void)
+2 -4
drivers/video/fbdev/uvesafb.c
··· 1774 1774 return err; 1775 1775 } 1776 1776 1777 - static int uvesafb_remove(struct platform_device *dev) 1777 + static void uvesafb_remove(struct platform_device *dev) 1778 1778 { 1779 1779 struct fb_info *info = platform_get_drvdata(dev); 1780 1780 struct uvesafb_par *par = info->par; ··· 1793 1793 kfree(par->vbe_state_saved); 1794 1794 1795 1795 framebuffer_release(info); 1796 - 1797 - return 0; 1798 1796 } 1799 1797 1800 1798 static struct platform_driver uvesafb_driver = { 1801 1799 .probe = uvesafb_probe, 1802 - .remove = uvesafb_remove, 1800 + .remove_new = uvesafb_remove, 1803 1801 .driver = { 1804 1802 .name = "uvesafb", 1805 1803 },
+2 -4
drivers/video/fbdev/vesafb.c
··· 485 485 return err; 486 486 } 487 487 488 - static int vesafb_remove(struct platform_device *pdev) 488 + static void vesafb_remove(struct platform_device *pdev) 489 489 { 490 490 struct fb_info *info = platform_get_drvdata(pdev); 491 491 ··· 494 494 495 495 /* vesafb_destroy takes care of info cleanup */ 496 496 unregister_framebuffer(info); 497 - 498 - return 0; 499 497 } 500 498 501 499 static struct platform_driver vesafb_driver = { ··· 501 503 .name = "vesa-framebuffer", 502 504 }, 503 505 .probe = vesafb_probe, 504 - .remove = vesafb_remove, 506 + .remove_new = vesafb_remove, 505 507 }; 506 508 507 509 module_platform_driver(vesafb_driver);
+3 -3
drivers/video/fbdev/vfb.c
··· 79 79 struct vm_area_struct *vma); 80 80 81 81 static const struct fb_ops vfb_ops = { 82 + .owner = THIS_MODULE, 82 83 .fb_read = fb_sys_read, 83 84 .fb_write = fb_sys_write, 84 85 .fb_check_var = vfb_check_var, ··· 480 479 return retval; 481 480 } 482 481 483 - static int vfb_remove(struct platform_device *dev) 482 + static void vfb_remove(struct platform_device *dev) 484 483 { 485 484 struct fb_info *info = platform_get_drvdata(dev); 486 485 ··· 490 489 fb_dealloc_cmap(&info->cmap); 491 490 framebuffer_release(info); 492 491 } 493 - return 0; 494 492 } 495 493 496 494 static struct platform_driver vfb_driver = { 497 495 .probe = vfb_probe, 498 - .remove = vfb_remove, 496 + .remove_new = vfb_remove, 499 497 .driver = { 500 498 .name = "vfb", 501 499 },
+2 -4
drivers/video/fbdev/vga16fb.c
··· 1401 1401 return ret; 1402 1402 } 1403 1403 1404 - static int vga16fb_remove(struct platform_device *dev) 1404 + static void vga16fb_remove(struct platform_device *dev) 1405 1405 { 1406 1406 struct fb_info *info = platform_get_drvdata(dev); 1407 1407 1408 1408 if (info) 1409 1409 unregister_framebuffer(info); 1410 - 1411 - return 0; 1412 1410 } 1413 1411 1414 1412 static const struct platform_device_id vga16fb_driver_id_table[] = { ··· 1418 1420 1419 1421 static struct platform_driver vga16fb_driver = { 1420 1422 .probe = vga16fb_probe, 1421 - .remove = vga16fb_remove, 1423 + .remove_new = vga16fb_remove, 1422 1424 .driver = { 1423 1425 .name = "vga16fb", 1424 1426 },
+2 -3
drivers/video/fbdev/via/via-gpio.c
··· 262 262 } 263 263 264 264 265 - static int viafb_gpio_remove(struct platform_device *platdev) 265 + static void viafb_gpio_remove(struct platform_device *platdev) 266 266 { 267 267 unsigned long flags; 268 268 int i; ··· 285 285 viafb_gpio_disable(viafb_gpio_config.active_gpios[i]); 286 286 viafb_gpio_config.gpio_chip.ngpio = 0; 287 287 spin_unlock_irqrestore(&viafb_gpio_config.vdev->reg_lock, flags); 288 - return 0; 289 288 } 290 289 291 290 static struct platform_driver via_gpio_driver = { ··· 292 293 .name = "viafb-gpio", 293 294 }, 294 295 .probe = viafb_gpio_probe, 295 - .remove = viafb_gpio_remove, 296 + .remove_new = viafb_gpio_remove, 296 297 }; 297 298 298 299 int viafb_gpio_init(void)
+2 -3
drivers/video/fbdev/via/via_i2c.c
··· 246 246 return 0; 247 247 } 248 248 249 - static int viafb_i2c_remove(struct platform_device *platdev) 249 + static void viafb_i2c_remove(struct platform_device *platdev) 250 250 { 251 251 int i; 252 252 ··· 259 259 if (i2c_stuff->is_active) 260 260 i2c_del_adapter(&i2c_stuff->adapter); 261 261 } 262 - return 0; 263 262 } 264 263 265 264 static struct platform_driver via_i2c_driver = { ··· 266 267 .name = "viafb-i2c", 267 268 }, 268 269 .probe = viafb_i2c_probe, 269 - .remove = viafb_i2c_remove, 270 + .remove_new = viafb_i2c_remove, 270 271 }; 271 272 272 273 int viafb_i2c_init(void)
+2 -4
drivers/video/fbdev/vt8500lcdfb.c
··· 439 439 return ret; 440 440 } 441 441 442 - static int vt8500lcd_remove(struct platform_device *pdev) 442 + static void vt8500lcd_remove(struct platform_device *pdev) 443 443 { 444 444 struct vt8500lcd_info *fbi = platform_get_drvdata(pdev); 445 445 struct resource *res; ··· 462 462 463 463 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 464 464 release_mem_region(res->start, resource_size(res)); 465 - 466 - return 0; 467 465 } 468 466 469 467 static const struct of_device_id via_dt_ids[] = { ··· 471 473 472 474 static struct platform_driver vt8500lcd_driver = { 473 475 .probe = vt8500lcd_probe, 474 - .remove = vt8500lcd_remove, 476 + .remove_new = vt8500lcd_remove, 475 477 .driver = { 476 478 .name = "vt8500-lcd", 477 479 .of_match_table = of_match_ptr(via_dt_ids),
+2 -4
drivers/video/fbdev/wm8505fb.c
··· 372 372 return 0; 373 373 } 374 374 375 - static int wm8505fb_remove(struct platform_device *pdev) 375 + static void wm8505fb_remove(struct platform_device *pdev) 376 376 { 377 377 struct wm8505fb_info *fbi = platform_get_drvdata(pdev); 378 378 ··· 382 382 383 383 if (fbi->fb.cmap.len) 384 384 fb_dealloc_cmap(&fbi->fb.cmap); 385 - 386 - return 0; 387 385 } 388 386 389 387 static const struct of_device_id wmt_dt_ids[] = { ··· 391 393 392 394 static struct platform_driver wm8505fb_driver = { 393 395 .probe = wm8505fb_probe, 394 - .remove = wm8505fb_remove, 396 + .remove_new = wm8505fb_remove, 395 397 .driver = { 396 398 .name = DRIVER_NAME, 397 399 .of_match_table = wmt_dt_ids,
+2 -3
drivers/video/fbdev/wmt_ge_rops.c
··· 145 145 return 0; 146 146 } 147 147 148 - static int wmt_ge_rops_remove(struct platform_device *pdev) 148 + static void wmt_ge_rops_remove(struct platform_device *pdev) 149 149 { 150 150 iounmap(regbase); 151 - return 0; 152 151 } 153 152 154 153 static const struct of_device_id wmt_dt_ids[] = { ··· 157 158 158 159 static struct platform_driver wmt_ge_rops_driver = { 159 160 .probe = wmt_ge_rops_probe, 160 - .remove = wmt_ge_rops_remove, 161 + .remove_new = wmt_ge_rops_remove, 161 162 .driver = { 162 163 .name = "wmt_ge_rops", 163 164 .of_match_table = wmt_dt_ids,
+2 -4
drivers/video/fbdev/xilinxfb.c
··· 474 474 return xilinxfb_assign(pdev, drvdata, &pdata); 475 475 } 476 476 477 - static int xilinxfb_of_remove(struct platform_device *op) 477 + static void xilinxfb_of_remove(struct platform_device *op) 478 478 { 479 479 xilinxfb_release(&op->dev); 480 - 481 - return 0; 482 480 } 483 481 484 482 /* Match table for of_platform binding */ ··· 492 494 493 495 static struct platform_driver xilinxfb_of_driver = { 494 496 .probe = xilinxfb_of_probe, 495 - .remove = xilinxfb_of_remove, 497 + .remove_new = xilinxfb_of_remove, 496 498 .driver = { 497 499 .name = DRIVER_NAME, 498 500 .of_match_table = xilinxfb_of_match,
+1 -1
include/linux/vt_buffer.h
··· 16 16 17 17 #include <linux/string.h> 18 18 19 - #if defined(CONFIG_VGA_CONSOLE) || defined(CONFIG_MDA_CONSOLE) 19 + #if IS_ENABLED(CONFIG_VGA_CONSOLE) || IS_ENABLED(CONFIG_MDA_CONSOLE) 20 20 #include <asm/vga.h> 21 21 #endif 22 22