My attempts to munge it into the current source (without knowledge of C) didn't result in a successful start. Do you still have a working source tree you can diff against?
Unfortunately this looks suspiciously like a feature reversion rather than an actual bugfix. But I guess it can tide me over until the sysfs interface for this get sorted out. Assuming I can get that patch working, that is.
signature.asc
Description: Digital signature