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>
This commit is contained in:
committed by
David S. Miller
parent
1c70e099ac
commit
597b506816
@@ -210,13 +210,6 @@ config KINGSUN_DONGLE
|
|||||||
To compile it as a module, choose M here: the module will be called
|
To compile it as a module, choose M here: the module will be called
|
||||||
kingsun-sir.
|
kingsun-sir.
|
||||||
|
|
||||||
config EP7211_DONGLE
|
|
||||||
tristate "Cirrus Logic clps711x I/R support"
|
|
||||||
depends on IRTTY_SIR && ARCH_CLPS711X && IRDA
|
|
||||||
help
|
|
||||||
Say Y here if you want to build support for the Cirrus logic
|
|
||||||
EP7211 chipset's infrared module.
|
|
||||||
|
|
||||||
config KSDAZZLE_DONGLE
|
config KSDAZZLE_DONGLE
|
||||||
tristate "KingSun Dazzle IrDA-USB dongle"
|
tristate "KingSun Dazzle IrDA-USB dongle"
|
||||||
depends on IRDA && USB
|
depends on IRDA && USB
|
||||||
|
@@ -35,7 +35,6 @@ obj-$(CONFIG_MCP2120_DONGLE) += mcp2120-sir.o
|
|||||||
obj-$(CONFIG_ACT200L_DONGLE) += act200l-sir.o
|
obj-$(CONFIG_ACT200L_DONGLE) += act200l-sir.o
|
||||||
obj-$(CONFIG_MA600_DONGLE) += ma600-sir.o
|
obj-$(CONFIG_MA600_DONGLE) += ma600-sir.o
|
||||||
obj-$(CONFIG_TOIM3232_DONGLE) += toim3232-sir.o
|
obj-$(CONFIG_TOIM3232_DONGLE) += toim3232-sir.o
|
||||||
obj-$(CONFIG_EP7211_DONGLE) += ep7211-sir.o
|
|
||||||
obj-$(CONFIG_KINGSUN_DONGLE) += kingsun-sir.o
|
obj-$(CONFIG_KINGSUN_DONGLE) += kingsun-sir.o
|
||||||
obj-$(CONFIG_KSDAZZLE_DONGLE) += ksdazzle-sir.o
|
obj-$(CONFIG_KSDAZZLE_DONGLE) += ksdazzle-sir.o
|
||||||
obj-$(CONFIG_KS959_DONGLE) += ks959-sir.o
|
obj-$(CONFIG_KS959_DONGLE) += ks959-sir.o
|
||||||
|
@@ -1,70 +0,0 @@
|
|||||||
/*
|
|
||||||
* IR port driver for the Cirrus Logic CLPS711X processors
|
|
||||||
*
|
|
||||||
* Copyright 2001, Blue Mug Inc. All rights reserved.
|
|
||||||
* Copyright 2007, Samuel Ortiz <samuel@sortiz.org>
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <linux/module.h>
|
|
||||||
#include <linux/platform_device.h>
|
|
||||||
|
|
||||||
#include <mach/hardware.h>
|
|
||||||
|
|
||||||
#include "sir-dev.h"
|
|
||||||
|
|
||||||
static int clps711x_dongle_open(struct sir_dev *dev)
|
|
||||||
{
|
|
||||||
unsigned int syscon;
|
|
||||||
|
|
||||||
/* Turn on the SIR encoder. */
|
|
||||||
syscon = clps_readl(SYSCON1);
|
|
||||||
syscon |= SYSCON1_SIREN;
|
|
||||||
clps_writel(syscon, SYSCON1);
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int clps711x_dongle_close(struct sir_dev *dev)
|
|
||||||
{
|
|
||||||
unsigned int syscon;
|
|
||||||
|
|
||||||
/* Turn off the SIR encoder. */
|
|
||||||
syscon = clps_readl(SYSCON1);
|
|
||||||
syscon &= ~SYSCON1_SIREN;
|
|
||||||
clps_writel(syscon, SYSCON1);
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static struct dongle_driver clps711x_dongle = {
|
|
||||||
.owner = THIS_MODULE,
|
|
||||||
.driver_name = "EP7211 IR driver",
|
|
||||||
.type = IRDA_EP7211_DONGLE,
|
|
||||||
.open = clps711x_dongle_open,
|
|
||||||
.close = clps711x_dongle_close,
|
|
||||||
};
|
|
||||||
|
|
||||||
static int clps711x_sir_probe(struct platform_device *pdev)
|
|
||||||
{
|
|
||||||
return irda_register_dongle(&clps711x_dongle);
|
|
||||||
}
|
|
||||||
|
|
||||||
static int clps711x_sir_remove(struct platform_device *pdev)
|
|
||||||
{
|
|
||||||
return irda_unregister_dongle(&clps711x_dongle);
|
|
||||||
}
|
|
||||||
|
|
||||||
static struct platform_driver clps711x_sir_driver = {
|
|
||||||
.driver = {
|
|
||||||
.name = "sir-clps711x",
|
|
||||||
.owner = THIS_MODULE,
|
|
||||||
},
|
|
||||||
.probe = clps711x_sir_probe,
|
|
||||||
.remove = clps711x_sir_remove,
|
|
||||||
};
|
|
||||||
module_platform_driver(clps711x_sir_driver);
|
|
||||||
|
|
||||||
MODULE_AUTHOR("Samuel Ortiz <samuel@sortiz.org>");
|
|
||||||
MODULE_DESCRIPTION("EP7211 IR dongle driver");
|
|
||||||
MODULE_LICENSE("GPL");
|
|
||||||
MODULE_ALIAS("irda-dongle-13"); /* IRDA_EP7211_DONGLE */
|
|
Reference in New Issue
Block a user