Messages in this thread | | | Date | Wed, 22 Mar 2006 13:08:20 -0800 | From | Greg KH <> | Subject | Re: [PATCH] Try 2, Fix release function in IPMI device model |
| |
On Wed, Mar 22, 2006 at 02:45:01PM -0600, Corey Minyard wrote: > Ok, one more try. Russell, I assume you mean to use > platform_device_alloc(), which seems to do what you suggested. > And I assume the driver_data is the way to store whatever you > need, instead of using the container_of() macro. > > Arjun, Russell, thanks for the info. > > Now the patch... > > Arjun van de Ven pointed out that the changeover to the driver model > in the IPMI driver had some bugs in it dealing with the release > function and cleanup. Then Russell King pointed out that you can't > put release functions in the same module as the unregistering code.
Yes you can, you just have to properly set up the module attribute owners and it will work just fine.
thanks,
greg k-h - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |