Re: [PATCH] Input: omap-keypad - use driver core to instantiate device attributes

From: Greg KH
Date: Thu Jul 11 2024 - 03:44:40 EST


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>