Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2e4ed295 authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz
Browse files

ht6560b: use driver name for resource allocation

parent d147e7d8
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -35,6 +35,7 @@
 *  Try:  http://www.maf.iki.fi/~maf/ht6560b/
 *  Try:  http://www.maf.iki.fi/~maf/ht6560b/
 */
 */


#define DRV_NAME	"ht6560b"
#define HT6560B_VERSION "v0.08"
#define HT6560B_VERSION "v0.08"


#include <linux/module.h>
#include <linux/module.h>
@@ -348,7 +349,7 @@ static int __init ht6560b_init(void)
	hwif = &ide_hwifs[0];
	hwif = &ide_hwifs[0];
	mate = &ide_hwifs[1];
	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",
		printk(KERN_NOTICE "%s: HT_CONFIG_PORT not found\n",
			__FUNCTION__);
			__FUNCTION__);
		return -ENODEV;
		return -ENODEV;