From: Greg Kroah-Hartman Date: Thu, 25 Aug 2011 22:07:32 +0000 (-0700) Subject: Staging: hv: fix up driver registering mess X-Git-Tag: v3.2-rc1~169^2^2~864^2~69 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=768fa21919b7f30b77f0b3ba94939f5556d111d5;p=pandora-kernel.git Staging: hv: fix up driver registering mess Individual drivers should never be touching the 'struct device' field, so if that is a requirement to pass to the vmbus core, you know something is wrong. This patch fixes that all up, and resolves the problem where the module reference counting was not happening properly for the individual drivers as well. Overall, it reduces the lines of code the individual drivers have to have, which tells you that this is the correct thing to do. Also, somehow the _GPL marking for the functions got removed on an older patch. As the name of the function was changing, properly change the _GPL marking as well at the same time. Cc: K. Y. Srinivasan Cc: Haiyang Zhang Cc: Hank Janssen Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed