diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-04-26 17:36:35 +0200 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-04-26 17:36:35 +0200 |
commit | 2e4ed2955d0de73cd43793ff495ea027e9fd2f44 (patch) | |
tree | 357c8b834231b7b90824ef9355db41b7b306ca9f /drivers/ide/legacy/ht6560b.c | |
parent | d147e7d8f22c18cfb879513e8e1e10fa52f9789e (diff) | |
download | lwn-2e4ed2955d0de73cd43793ff495ea027e9fd2f44.tar.gz lwn-2e4ed2955d0de73cd43793ff495ea027e9fd2f44.zip |
ht6560b: use driver name for resource allocation
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/legacy/ht6560b.c')
-rw-r--r-- | drivers/ide/legacy/ht6560b.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/ide/legacy/ht6560b.c b/drivers/ide/legacy/ht6560b.c index 88fe9070c9c3..fd21209025e1 100644 --- a/drivers/ide/legacy/ht6560b.c +++ b/drivers/ide/legacy/ht6560b.c @@ -35,6 +35,7 @@ * Try: http://www.maf.iki.fi/~maf/ht6560b/ */ +#define DRV_NAME "ht6560b" #define HT6560B_VERSION "v0.08" #include <linux/module.h> @@ -348,7 +349,7 @@ static int __init ht6560b_init(void) hwif = &ide_hwifs[0]; mate = &ide_hwifs[1]; - if (!request_region(HT_CONFIG_PORT, 1, hwif->name)) { + if (!request_region(HT_CONFIG_PORT, 1, DRV_NAME)) { printk(KERN_NOTICE "%s: HT_CONFIG_PORT not found\n", __FUNCTION__); return -ENODEV; |