On Wed, Jul 10, 2024 at 10:03:29PM -0700, Dmitry Torokhov wrote: > Instead of manually creating driver-specific device attributes > set struct driver->dev_groups pointer to have the driver core > do it. > > This also fixes issue with the attribute not being deleted on driver > unbind. > > Signed-off-by: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx> Reviewed-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>