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

« back to all changes in this revision

Viewing changes to arch/powerpc/sysdev/pmi.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:
121
121
        spin_unlock(&data->handler_spinlock);
122
122
}
123
123
 
124
 
static int pmi_of_probe(struct platform_device *dev,
125
 
                        const struct of_device_id *match)
 
124
static int pmi_of_probe(struct platform_device *dev)
126
125
{
127
126
        struct device_node *np = dev->dev.of_node;
128
127
        int rc;
205
204
        return 0;
206
205
}
207
206
 
208
 
static struct of_platform_driver pmi_of_platform_driver = {
 
207
static struct platform_driver pmi_of_platform_driver = {
209
208
        .probe          = pmi_of_probe,
210
209
        .remove         = pmi_of_remove,
211
210
        .driver = {
217
216
 
218
217
static int __init pmi_module_init(void)
219
218
{
220
 
        return of_register_platform_driver(&pmi_of_platform_driver);
 
219
        return platform_driver_register(&pmi_of_platform_driver);
221
220
}
222
221
module_init(pmi_module_init);
223
222
 
224
223
static void __exit pmi_module_exit(void)
225
224
{
226
 
        of_unregister_platform_driver(&pmi_of_platform_driver);
 
225
        platform_driver_unregister(&pmi_of_platform_driver);
227
226
}
228
227
module_exit(pmi_module_exit);
229
228