Root/
1 | /* |
2 | * linux/drivers/pcmcia/pxa/pxa_cm_x2xx.c |
3 | * |
4 | * This program is free software; you can redistribute it and/or modify |
5 | * it under the terms of the GNU General Public License version 2 as |
6 | * published by the Free Software Foundation. |
7 | * |
8 | * Compulab Ltd., 2003, 2007, 2008 |
9 | * Mike Rapoport <mike@compulab.co.il> |
10 | * |
11 | */ |
12 | |
13 | #include <linux/module.h> |
14 | |
15 | #include <asm/system.h> |
16 | #include <asm/mach-types.h> |
17 | #include <mach/system.h> |
18 | |
19 | int cmx255_pcmcia_init(void); |
20 | int cmx270_pcmcia_init(void); |
21 | void cmx255_pcmcia_exit(void); |
22 | void cmx270_pcmcia_exit(void); |
23 | |
24 | static int __init cmx2xx_pcmcia_init(void) |
25 | { |
26 | int ret = -ENODEV; |
27 | |
28 | if (machine_is_armcore() && cpu_is_pxa25x()) |
29 | ret = cmx255_pcmcia_init(); |
30 | else if (machine_is_armcore() && cpu_is_pxa27x()) |
31 | ret = cmx270_pcmcia_init(); |
32 | |
33 | return ret; |
34 | } |
35 | |
36 | static void __exit cmx2xx_pcmcia_exit(void) |
37 | { |
38 | if (machine_is_armcore() && cpu_is_pxa25x()) |
39 | cmx255_pcmcia_exit(); |
40 | else if (machine_is_armcore() && cpu_is_pxa27x()) |
41 | cmx270_pcmcia_exit(); |
42 | } |
43 | |
44 | module_init(cmx2xx_pcmcia_init); |
45 | module_exit(cmx2xx_pcmcia_exit); |
46 | |
47 | MODULE_LICENSE("GPL"); |
48 | MODULE_AUTHOR("Mike Rapoport <mike@compulab.co.il>"); |
49 | MODULE_DESCRIPTION("CM-x2xx PCMCIA driver"); |
50 |
Branches:
ben-wpan
ben-wpan-stefan
javiroman/ks7010
jz-2.6.34
jz-2.6.34-rc5
jz-2.6.34-rc6
jz-2.6.34-rc7
jz-2.6.35
jz-2.6.36
jz-2.6.37
jz-2.6.38
jz-2.6.39
jz-3.0
jz-3.1
jz-3.11
jz-3.12
jz-3.13
jz-3.15
jz-3.16
jz-3.18-dt
jz-3.2
jz-3.3
jz-3.4
jz-3.5
jz-3.6
jz-3.6-rc2-pwm
jz-3.9
jz-3.9-clk
jz-3.9-rc8
jz47xx
jz47xx-2.6.38
master
Tags:
od-2011-09-04
od-2011-09-18
v2.6.34-rc5
v2.6.34-rc6
v2.6.34-rc7
v3.9