drm: Reintroduce drm_kms_free()
authorFrançois Tigeot <ftigeot@wolfpond.org>
Sat, 7 Feb 2015 16:57:28 +0000 (17:57 +0100)
committerFrançois Tigeot <ftigeot@wolfpond.org>
Sat, 7 Feb 2015 17:49:04 +0000 (18:49 +0100)
commita5f723789ad9efa919f88614b7d8afe920fc0bda
tree3d411d46015debfe26512707948fd009309f80ca
parent9f0f5970db54ce9c42f2d66e54e9cb3c35333c13
drm: Reintroduce drm_kms_free()

* The Linux version of kfree() is a macro with one argument.

* The real kfree() function takes two arguments.

* kfree() cannot be simply called via a function pointer from
  Linux code.

* Re-add the special purpose drm_kms_free() wrapper function
  to handle this situation. It was wrongly removed when drm_crtc.c
  was last synced to Linux.

Reported-by: jh32
sys/dev/drm/drm_crtc.c