aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/watchdog/riowd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/watchdog/riowd.c b/drivers/watchdog/riowd.c
index 98bb60ff02f2..04fd1bac2db5 100644
--- a/drivers/watchdog/riowd.c
+++ b/drivers/watchdog/riowd.c
@@ -48,8 +48,8 @@ MODULE_DESCRIPTION("Hardware watchdog driver for Sun RIO");
48MODULE_SUPPORTED_DEVICE("watchdog"); 48MODULE_SUPPORTED_DEVICE("watchdog");
49MODULE_LICENSE("GPL"); 49MODULE_LICENSE("GPL");
50 50
51#define RIOWD_NAME "pmc" 51#define DRIVER_NAME "riowd"
52#define PFX RIOWD_NAME ": " 52#define PFX DRIVER_NAME ": "
53 53
54struct riowd { 54struct riowd {
55 void __iomem *regs; 55 void __iomem *regs;
@@ -92,7 +92,7 @@ static int riowd_ioctl(struct inode *inode, struct file *filp,
92 static struct watchdog_info info = { 92 static struct watchdog_info info = {
93 .options = WDIOF_SETTIMEOUT, 93 .options = WDIOF_SETTIMEOUT,
94 .firmware_version = 1, 94 .firmware_version = 1,
95 .identity = "riowd", 95 .identity = DRIVER_NAME,
96 }; 96 };
97 void __user *argp = (void __user *)arg; 97 void __user *argp = (void __user *)arg;
98 struct riowd *p = riowd_device; 98 struct riowd *p = riowd_device;
@@ -190,7 +190,7 @@ static int __devinit riowd_probe(struct of_device *op,
190 190
191 spin_lock_init(&p->lock); 191 spin_lock_init(&p->lock);
192 192
193 p->regs = of_ioremap(&op->resource[0], 0, 2, "riowd"); 193 p->regs = of_ioremap(&op->resource[0], 0, 2, DRIVER_NAME);
194 if (!p->regs) { 194 if (!p->regs) {
195 printk(KERN_ERR PFX "Cannot map registers.\n"); 195 printk(KERN_ERR PFX "Cannot map registers.\n");
196 goto out_free; 196 goto out_free;
@@ -239,7 +239,7 @@ static struct of_device_id riowd_match[] = {
239MODULE_DEVICE_TABLE(of, riowd_match); 239MODULE_DEVICE_TABLE(of, riowd_match);
240 240
241static struct of_platform_driver riowd_driver = { 241static struct of_platform_driver riowd_driver = {
242 .name = "riowd", 242 .name = DRIVER_NAME,
243 .match_table = riowd_match, 243 .match_table = riowd_match,
244 .probe = riowd_probe, 244 .probe = riowd_probe,
245 .remove = __devexit_p(riowd_remove), 245 .remove = __devexit_p(riowd_remove),