~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to drivers/tty/serial/sunsab.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1006
1006
        return 0;
1007
1007
}
1008
1008
 
1009
 
static int __devinit sab_probe(struct platform_device *op, const struct of_device_id *match)
 
1009
static int __devinit sab_probe(struct platform_device *op)
1010
1010
{
1011
1011
        static int inst;
1012
1012
        struct uart_sunsab_port *up;
1092
1092
};
1093
1093
MODULE_DEVICE_TABLE(of, sab_match);
1094
1094
 
1095
 
static struct of_platform_driver sab_driver = {
 
1095
static struct platform_driver sab_driver = {
1096
1096
        .driver = {
1097
1097
                .name = "sab",
1098
1098
                .owner = THIS_MODULE,
1130
1130
                }
1131
1131
        }
1132
1132
 
1133
 
        return of_register_platform_driver(&sab_driver);
 
1133
        return platform_driver_register(&sab_driver);
1134
1134
}
1135
1135
 
1136
1136
static void __exit sunsab_exit(void)
1137
1137
{
1138
 
        of_unregister_platform_driver(&sab_driver);
 
1138
        platform_driver_unregister(&sab_driver);
1139
1139
        if (sunsab_reg.nr) {
1140
1140
                sunserial_unregister_minors(&sunsab_reg, sunsab_reg.nr);
1141
1141
        }