Skip to contentSkip to conversation

Staging: hv: Remove unnecessary function pointers in driver_context

PATCH In review K. Y. Srinivasan 1 participant 1 message Mar 7, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 4/16 Staging: hv: Remove unnecessary function pointers in driver_context

Get rid of the unnecessary function pointers for probe(), remove() and shutdown() from struct driver_context.

---
 drivers/staging/hv/vmbus.h |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)
drivers/staging/hv/vmbus.h +0 -8
index 42f2adb..8bcfb40 100644
@@ -33,14 +33,6 @@ struct driver_context {
 
 	struct device_driver driver;
 
-	/*
-	 * Use these methods instead of the struct device_driver so 2.6 kernel
-	 * stops complaining
-	 * TODO - fix this!
-	 */
-	int (*probe)(struct device *);
-	int (*remove)(struct device *);
-	void (*shutdown)(struct device *);
 };
 
 struct vm_device {
Signature · 1 line
1.5.5.6