]> git.baikalelectronics.ru Git - kernel.git/commit
drm/st7735r: Use devm_drm_dev_alloc
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 15 Apr 2020 07:39:48 +0000 (09:39 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 28 Apr 2020 13:44:05 +0000 (15:44 +0200)
commit3e5531c206140fbfdf1e59d025075fdace9f97b2
tree0d79e9db25c110814a0b8186dcf3597d7c73b2ed
parent19cfa23a0224242721defbe4a954d6640fdb242f
drm/st7735r: Use devm_drm_dev_alloc

Already using devm_drm_dev_init, so very simple replacment.

Aside: There was an oddity in the old code, we allocated priv but in
the error path we've freed priv->dbidev ...

Acked-by: David Lechner <david@lechnology.com>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Cc: David Lechner <david@lechnology.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200415074034.175360-14-daniel.vetter@ffwll.ch
drivers/gpu/drm/tiny/st7735r.c