Input: maplemouse - convert to devm
Convert the driver to use managed resources to simplify resource
lifecycle management. Using devm_input_allocate_device(&mdev->dev) also
assigns the Maple device as the input device's parent, which was
previously missing.
This eliminates manual error handling in probe() and allows removing
the remove() callback entirely, as all cleanup is handled automatically.
Tested-by: Florian Fuchs <fuchsfl@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 file changed