@@ -22,9 +22,8 @@
#include "gpiolib.h"
#undef pr_fmt
-#define pr_fmt(fmt) GPIO_MOCKUP_NAME ": " fmt
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
-#define GPIO_MOCKUP_NAME "gpio-mockup"
#define GPIO_MOCKUP_MAX_GC 10
/*
* We're storing two values per chip: the GPIO base and the number
@@ -501,7 +500,7 @@ static int gpio_mockup_probe(struct platform_device *pdev)
static struct platform_driver gpio_mockup_driver = {
.driver = {
- .name = GPIO_MOCKUP_NAME,
+ .name = "gpio-mockup",
},
.probe = gpio_mockup_probe,
};
@@ -572,7 +571,7 @@ static int __init gpio_mockup_init(void)
properties[prop++] = PROPERTY_ENTRY_BOOL(
"named-gpio-lines");
- pdevinfo.name = GPIO_MOCKUP_NAME;
+ pdevinfo.name = "gpio-mockup";
pdevinfo.id = i;
pdevinfo.properties = properties;