From: Jens Taprogge Date: Wed, 12 Sep 2012 12:55:41 +0000 (+0200) Subject: Staging: ipack/devices/ipoctal: Use KBUILD_MODNAME instead of hardcoded string. X-Git-Tag: firefly_0821_release~3680^2~1977^2~266 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3f3a592798fe4a6eff0448685280925a9b1830f4;p=firefly-linux-kernel-4.4.55.git Staging: ipack/devices/ipoctal: Use KBUILD_MODNAME instead of hardcoded string. Signed-off-by: Jens Taprogge Signed-off-by: Samuel Iglesias Gonsalvez Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/ipack/devices/ipoctal.c b/drivers/staging/ipack/devices/ipoctal.c index 737127033cff..a0c1e7651ea5 100644 --- a/drivers/staging/ipack/devices/ipoctal.c +++ b/drivers/staging/ipack/devices/ipoctal.c @@ -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;