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

« back to all changes in this revision

Viewing changes to drivers/sbus/char/display7seg.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:
171
171
        .fops           = &d7s_fops
172
172
};
173
173
 
174
 
static int __devinit d7s_probe(struct platform_device *op,
175
 
                               const struct of_device_id *match)
 
174
static int __devinit d7s_probe(struct platform_device *op)
176
175
{
177
176
        struct device_node *opts;
178
177
        int err = -EINVAL;
266
265
};
267
266
MODULE_DEVICE_TABLE(of, d7s_match);
268
267
 
269
 
static struct of_platform_driver d7s_driver = {
 
268
static struct platform_driver d7s_driver = {
270
269
        .driver = {
271
270
                .name = DRIVER_NAME,
272
271
                .owner = THIS_MODULE,
278
277
 
279
278
static int __init d7s_init(void)
280
279
{
281
 
        return of_register_platform_driver(&d7s_driver);
 
280
        return platform_driver_register(&d7s_driver);
282
281
}
283
282
 
284
283
static void __exit d7s_exit(void)
285
284
{
286
 
        of_unregister_platform_driver(&d7s_driver);
 
285
        platform_driver_unregister(&d7s_driver);
287
286
}
288
287
 
289
288
module_init(d7s_init);