Skip to content

Commit

Permalink
ht6560b: use driver name for resource allocation
Browse files Browse the repository at this point in the history
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Apr 26, 2008
1 parent d147e7d commit 2e4ed29
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/ide/legacy/ht6560b.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 2e4ed29

Please sign in to comment.