MODULE_SUPPORTED_DEVICE("watchdog");
MODULE_LICENSE("GPL");
-#define RIOWD_NAME "pmc"
-#define PFX RIOWD_NAME ": "
+#define DRIVER_NAME "riowd"
+#define PFX DRIVER_NAME ": "
struct riowd {
void __iomem *regs;
static struct watchdog_info info = {
.options = WDIOF_SETTIMEOUT,
.firmware_version = 1,
- .identity = "riowd",
+ .identity = DRIVER_NAME,
};
void __user *argp = (void __user *)arg;
struct riowd *p = riowd_device;
spin_lock_init(&p->lock);
- p->regs = of_ioremap(&op->resource[0], 0, 2, "riowd");
+ p->regs = of_ioremap(&op->resource[0], 0, 2, DRIVER_NAME);
if (!p->regs) {
printk(KERN_ERR PFX "Cannot map registers.\n");
goto out_free;
return 0;
}
-static struct of_device_id riowd_match[] = {
+static const struct of_device_id riowd_match[] = {
{
.name = "pmc",
},
MODULE_DEVICE_TABLE(of, riowd_match);
static struct of_platform_driver riowd_driver = {
- .name = "riowd",
+ .name = DRIVER_NAME,
.match_table = riowd_match,
.probe = riowd_probe,
.remove = __devexit_p(riowd_remove),