Den 19.02.2020 11.20, skrev Daniel Vetter: > They all share mipi_dbi_release so we need to switch them all > together. With this we can drop the final kfree from the release > function. > > Aside, I think we could perhaps have a tiny additional helper for > these mipi_dbi drivers, the first few lines around devm_drm_dev_init > are all the same (except for the drm_driver pointer). > > Cc: Maarten Lankhorst <[email protected]> > Cc: Maxime Ripard <[email protected]> > Cc: Thomas Zimmermann <[email protected]> > Cc: David Airlie <[email protected]> > Cc: Daniel Vetter <[email protected]> > Cc: Eric Anholt <[email protected]> > Cc: David Lechner <[email protected]> > Cc: Kamlesh Gurudasani <[email protected]> > Cc: "Noralf Trønnes" <[email protected]> > Cc: Sam Ravnborg <[email protected]> > Signed-off-by: Daniel Vetter <[email protected]> > ---
I really would have preferred having devm_drm_dev_alloc() in this series, drmm_add_final_kfree() is rather odd. But I can wait: Reviewed-by: Noralf Trønnes <[email protected]> I have tested the whole series on tiny/mi0283qt: Tested-by: Noralf Trønnes <[email protected]> _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
