diff options
author | Alexander Shiyan <shc_work@mail.ru> | 2014-02-04 10:43:32 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-02-06 22:54:48 -0500 |
commit | 597b506816337842ae76e739982b1b6fc19f35df (patch) | |
tree | f05dd7c3f7e63765082461964e46653060413a25 /drivers/net | |
parent | 1c70e099ac80ee779ffac66a6169ad936425fe41 (diff) |
net: irda: ep7211-sir: Remove driver
This patch removes old and unsupported CLPS711X IrDA driver.
Support for IrDA for CLPS711X serial port now provided by commit
4a33f1f59abd (serial: clps711x: Add support for N_IRDA line
discipline), so IrDA-mode can be turned ON with "irattach" tool
through "irtty" driver.
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/irda/Kconfig | 7 | ||||
-rw-r--r-- | drivers/net/irda/Makefile | 1 | ||||
-rw-r--r-- | drivers/net/irda/ep7211-sir.c | 70 |
3 files changed, 0 insertions, 78 deletions
diff --git a/drivers/net/irda/Kconfig b/drivers/net/irda/Kconfig index 2dc82f1d2e70..3da44d5d9149 100644 --- a/drivers/net/irda/Kconfig +++ b/drivers/net/irda/Kconfig | |||
@@ -210,13 +210,6 @@ config KINGSUN_DONGLE | |||
210 | To compile it as a module, choose M here: the module will be called | 210 | To compile it as a module, choose M here: the module will be called |
211 | kingsun-sir. | 211 | kingsun-sir. |
212 | 212 | ||
213 | config EP7211_DONGLE | ||
214 | tristate "Cirrus Logic clps711x I/R support" | ||
215 | depends on IRTTY_SIR && ARCH_CLPS711X && IRDA | ||
216 | help | ||
217 | Say Y here if you want to build support for the Cirrus logic | ||
218 | EP7211 chipset's infrared module. | ||
219 | |||
220 | config KSDAZZLE_DONGLE | 213 | config KSDAZZLE_DONGLE |
221 | tristate "KingSun Dazzle IrDA-USB dongle" | 214 | tristate "KingSun Dazzle IrDA-USB dongle" |
222 | depends on IRDA && USB | 215 | depends on IRDA && USB |
diff --git a/drivers/net/irda/Makefile b/drivers/net/irda/Makefile index dfc64537f62f..be8ab5b9a4a2 100644 --- a/drivers/net/irda/Makefile +++ b/drivers/net/irda/Makefile | |||
@@ -35,7 +35,6 @@ obj-$(CONFIG_MCP2120_DONGLE) += mcp2120-sir.o | |||
35 | obj-$(CONFIG_ACT200L_DONGLE) += act200l-sir.o | 35 | obj-$(CONFIG_ACT200L_DONGLE) += act200l-sir.o |
36 | obj-$(CONFIG_MA600_DONGLE) += ma600-sir.o | 36 | obj-$(CONFIG_MA600_DONGLE) += ma600-sir.o |
37 | obj-$(CONFIG_TOIM3232_DONGLE) += toim3232-sir.o | 37 | obj-$(CONFIG_TOIM3232_DONGLE) += toim3232-sir.o |
38 | obj-$(CONFIG_EP7211_DONGLE) += ep7211-sir.o | ||
39 | obj-$(CONFIG_KINGSUN_DONGLE) += kingsun-sir.o | 38 | obj-$(CONFIG_KINGSUN_DONGLE) += kingsun-sir.o |
40 | obj-$(CONFIG_KSDAZZLE_DONGLE) += ksdazzle-sir.o | 39 | obj-$(CONFIG_KSDAZZLE_DONGLE) += ksdazzle-sir.o |
41 | obj-$(CONFIG_KS959_DONGLE) += ks959-sir.o | 40 | obj-$(CONFIG_KS959_DONGLE) += ks959-sir.o |
diff --git a/drivers/net/irda/ep7211-sir.c b/drivers/net/irda/ep7211-sir.c deleted file mode 100644 index 5fe1f4dd3369..000000000000 --- a/drivers/net/irda/ep7211-sir.c +++ /dev/null | |||
@@ -1,70 +0,0 @@ | |||
1 | /* | ||
2 | * IR port driver for the Cirrus Logic CLPS711X processors | ||
3 | * | ||
4 | * Copyright 2001, Blue Mug Inc. All rights reserved. | ||
5 | * Copyright 2007, Samuel Ortiz <samuel@sortiz.org> | ||
6 | */ | ||
7 | |||
8 | #include <linux/module.h> | ||
9 | #include <linux/platform_device.h> | ||
10 | |||
11 | #include <mach/hardware.h> | ||
12 | |||
13 | #include "sir-dev.h" | ||
14 | |||
15 | static int clps711x_dongle_open(struct sir_dev *dev) | ||
16 | { | ||
17 | unsigned int syscon; | ||
18 | |||
19 | /* Turn on the SIR encoder. */ | ||
20 | syscon = clps_readl(SYSCON1); | ||
21 | syscon |= SYSCON1_SIREN; | ||
22 | clps_writel(syscon, SYSCON1); | ||
23 | |||
24 | return 0; | ||
25 | } | ||
26 | |||
27 | static int clps711x_dongle_close(struct sir_dev *dev) | ||
28 | { | ||
29 | unsigned int syscon; | ||
30 | |||
31 | /* Turn off the SIR encoder. */ | ||
32 | syscon = clps_readl(SYSCON1); | ||
33 | syscon &= ~SYSCON1_SIREN; | ||
34 | clps_writel(syscon, SYSCON1); | ||
35 | |||
36 | return 0; | ||
37 | } | ||
38 | |||
39 | static struct dongle_driver clps711x_dongle = { | ||
40 | .owner = THIS_MODULE, | ||
41 | .driver_name = "EP7211 IR driver", | ||
42 | .type = IRDA_EP7211_DONGLE, | ||
43 | .open = clps711x_dongle_open, | ||
44 | .close = clps711x_dongle_close, | ||
45 | }; | ||
46 | |||
47 | static int clps711x_sir_probe(struct platform_device *pdev) | ||
48 | { | ||
49 | return irda_register_dongle(&clps711x_dongle); | ||
50 | } | ||
51 | |||
52 | static int clps711x_sir_remove(struct platform_device *pdev) | ||
53 | { | ||
54 | return irda_unregister_dongle(&clps711x_dongle); | ||
55 | } | ||
56 | |||
57 | static struct platform_driver clps711x_sir_driver = { | ||
58 | .driver = { | ||
59 | .name = "sir-clps711x", | ||
60 | .owner = THIS_MODULE, | ||
61 | }, | ||
62 | .probe = clps711x_sir_probe, | ||
63 | .remove = clps711x_sir_remove, | ||
64 | }; | ||
65 | module_platform_driver(clps711x_sir_driver); | ||
66 | |||
67 | MODULE_AUTHOR("Samuel Ortiz <samuel@sortiz.org>"); | ||
68 | MODULE_DESCRIPTION("EP7211 IR dongle driver"); | ||
69 | MODULE_LICENSE("GPL"); | ||
70 | MODULE_ALIAS("irda-dongle-13"); /* IRDA_EP7211_DONGLE */ | ||