summaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/ifx6x60.c
diff options
context:
space:
mode:
authorRuss Gorby <russ.gorby@intel.com>2011-02-07 12:02:32 -0800
committerGreg Kroah-Hartman <gregkh@suse.de>2011-02-17 11:16:15 -0800
commit8115be01462f8af2dc22dd65dd28268bb9b8bff6 (patch)
tree13fe0aff0b735f8a87757a0f5bb8e1e084e882d5 /drivers/tty/serial/ifx6x60.c
parent2aff8d90a073e5a07e1ff5a94779d6a21fb72dd2 (diff)
downloadblackbird-op-linux-8115be01462f8af2dc22dd65dd28268bb9b8bff6.tar.gz
blackbird-op-linux-8115be01462f8af2dc22dd65dd28268bb9b8bff6.zip
serial: ifx6x60: minor cleanup
renamed spi_driver variable to not be h/w specific set driver name to use DRVNAME define removed commented-out define Signed-off-by: Russ Gorby <russ.gorby@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/tty/serial/ifx6x60.c')
-rw-r--r--drivers/tty/serial/ifx6x60.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/tty/serial/ifx6x60.c b/drivers/tty/serial/ifx6x60.c
index 59e9cb87b7de..b68b96f53e6c 100644
--- a/drivers/tty/serial/ifx6x60.c
+++ b/drivers/tty/serial/ifx6x60.c
@@ -1333,9 +1333,9 @@ static const struct spi_device_id ifx_id_table[] = {
MODULE_DEVICE_TABLE(spi, ifx_id_table);
/* spi operations */
-static const struct spi_driver ifx_spi_driver_6160 = {
+static const struct spi_driver ifx_spi_driver = {
.driver = {
- .name = "ifx6160",
+ .name = DRVNAME,
.bus = &spi_bus_type,
.pm = &ifx_spi_pm,
.owner = THIS_MODULE},
@@ -1357,7 +1357,7 @@ static void __exit ifx_spi_exit(void)
{
/* unregister */
tty_unregister_driver(tty_drv);
- spi_unregister_driver((void *)&ifx_spi_driver_6160);
+ spi_unregister_driver((void *)&ifx_spi_driver);
}
/**
@@ -1399,7 +1399,7 @@ static int __init ifx_spi_init(void)
return result;
}
- result = spi_register_driver((void *)&ifx_spi_driver_6160);
+ result = spi_register_driver((void *)&ifx_spi_driver);
if (result) {
pr_err("%s: spi_register_driver failed(%d)",
DRVNAME, result);
OpenPOWER on IntegriCloud