--- a/devices/ccat/gpio.c Mon Oct 26 08:28:10 2015 +0100
+++ b/devices/ccat/gpio.c Thu Nov 05 16:54:49 2015 +0100
@@ -144,8 +144,8 @@
kfree(gpio);
return ret;
}
- pr_info("registered %s as gpio chip with #%d GPIOs.\n",
- gpio->chip.label, gpio->chip.ngpio);
+ pr_info("registered %s as gpiochip%d with #%d GPIOs.\n",
+ gpio->chip.label, gpio->chip.base, gpio->chip.ngpio);
func->private_data = gpio;
return 0;
}
@@ -157,7 +157,7 @@
gpiochip_remove(&gpio->chip);
};
-struct ccat_driver gpio_driver = {
+const struct ccat_driver gpio_driver = {
.type = CCATINFO_GPIO,
.probe = ccat_gpio_probe,
.remove = ccat_gpio_remove,