Staging: ipack/devices/ipoctal: Use KBUILD_MODNAME instead of hardcoded string.
authorJens Taprogge <jens.taprogge@taprogge.org>
Wed, 12 Sep 2012 12:55:41 +0000 (14:55 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 12 Sep 2012 16:56:02 +0000 (09:56 -0700)
Signed-off-by: Jens Taprogge <jens.taprogge@taprogge.org>
Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ipack/devices/ipoctal.c

index 737127033cffeb453ca8d1a4ef1b5a1192a8780e..a0c1e7651ea5988e42c6a6e5ab0d246d49af31b1 100644 (file)
@@ -411,8 +411,8 @@ static int ipoctal_inst_slot(struct ipoctal *ipoctal, unsigned int bus_nr,
 
        /* Fill struct tty_driver with ipoctal data */
        tty->owner = THIS_MODULE;
-       tty->driver_name = "ipoctal";
-       sprintf(name, "ipoctal.%d.%d.", bus_nr, slot);
+       tty->driver_name = KBUILD_MODNAME;
+       sprintf(name, KBUILD_MODNAME ".%d.%d.", bus_nr, slot);
        tty->name = name;
        tty->major = 0;