[PATCH] hwmon class driver registration with a device number

Greg KH greg at kroah.com
Wed Oct 5 15:33:59 EDT 2011


On Wed, Oct 05, 2011 at 10:43:11PM +0530, Himanshu Chauhan wrote:
> This patch adds a way to register a hwmon class driver
> with a device number rather than the default MK_DEV(0,0).
> This would help in creating required "dev" file under
> sysfs which in turn can be used in populating /dev tree
> during bootup (helpful to driver which want to show up
> a char interface along with sysfs).

How do you later remove a device created with this new interface?  As it
is, I think the existing calls will fail, right?

greg k-h



More information about the Kernelnewbies mailing list