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

« back to all changes in this revision

Viewing changes to drivers/input/serio/altera_ps2.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:
19
19
#include <linux/platform_device.h>
20
20
#include <linux/io.h>
21
21
#include <linux/slab.h>
 
22
#include <linux/of.h>
22
23
 
23
24
#define DRV_NAME "altera_ps2"
24
25
 
173
174
        return 0;
174
175
}
175
176
 
 
177
#ifdef CONFIG_OF
 
178
static const struct of_device_id altera_ps2_match[] = {
 
179
        { .compatible = "ALTR,ps2-1.0", },
 
180
        {},
 
181
};
 
182
MODULE_DEVICE_TABLE(of, altera_ps2_match);
 
183
#else /* CONFIG_OF */
 
184
#define altera_ps2_match NULL
 
185
#endif /* CONFIG_OF */
 
186
 
176
187
/*
177
188
 * Our device driver structure
178
189
 */
182
193
        .driver = {
183
194
                .name   = DRV_NAME,
184
195
                .owner  = THIS_MODULE,
 
196
                .of_match_table = altera_ps2_match,
185
197
        },
186
198
};
187
199
 
189
201
{
190
202
        return platform_driver_register(&altera_ps2_driver);
191
203
}
 
204
module_init(altera_ps2_init);
192
205
 
193
206
static void __exit altera_ps2_exit(void)
194
207
{
195
208
        platform_driver_unregister(&altera_ps2_driver);
196
209
}
197
 
 
198
 
module_init(altera_ps2_init);
199
210
module_exit(altera_ps2_exit);
200
211
 
201
212
MODULE_DESCRIPTION("Altera University Program PS2 controller driver");