Unloading i82365

Komuro komurojun at mbn.nifty.com
Sat Jul 3 07:29:31 EDT 2004


Dear all

I can't unload i82365 properly.

>Device 'i82365' does not have a release() function, 
>it is broken and must be fixed.

Following patch will fix this problem.(for vanilla 2.6.7 kernel)
(I added dummy release function.)

Best Regards
Komuro


--- linux/drivers/pcmcia/i82365.c.orig	2004-07-03 19:01:13.000000000 +0900
+++ linux/drivers/pcmcia/i82365.c	2004-07-03 19:53:20.551152032 +0900
@@ -1356,6 +1356,11 @@
 	return ret;
 }
 
+static void i82365_device_release(struct device *dev)
+{
+	return;
+}
+
 static struct device_driver i82365_driver = {
 	.name = "i82365",
 	.bus = &platform_bus_type,
@@ -1366,6 +1371,10 @@
 static struct platform_device i82365_device = {
 	.name = "i82365",
 	.id = 0,
+	.dev		= {
+			.release = i82365_device_release,
+			}
+
 };
 
 static int __init init_i82365(void)




More information about the linux-pcmcia mailing list