commit | d8ed9e87e6016433b8d178728a5391ea68101bca | [log] [tgz] |
---|---|---|
author | LABBE Corentin <clabbe.montjoie@gmail.com> | Tue Aug 16 11:27:18 2016 +0200 |
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | Tue Sep 27 11:41:30 2016 +0300 |
tree | 5b4a890f5466bbf9aa882c5191eeeb08115429e8 | |
parent | 60169c3fb78e5cd61cb1343e7f3c5edb72702a04 [diff] |
fbdev: ssd1307fb: fix a possible NULL dereference of_match_device could return NULL, and so cause a NULL pointer dereference later. For fixing this problem, we use of_device_get_match_data(), this will simplify the code a little by using a standard function for getting the match data. Signed-off-by: LABBE Corentin <clabbe.montjoie@gmail.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>