summaryrefslogtreecommitdiffstats
path: root/mm/cma.h
diff options
context:
space:
mode:
authorChen-Yu Tsai <wens@csie.org>2016-02-12 10:02:40 +0800
committerLee Jones <lee.jones@linaro.org>2016-02-12 08:51:17 +0000
commitaf7acc3df7b1cad3956579c63a70a7b85b69161b (patch)
tree6e3ed16573c1e7fd904a03f361cd6c73882fbf42 /mm/cma.h
parente47a3cf741e71b8c545a826df42432fec3ea60c6 (diff)
downloadop-kernel-dev-af7acc3df7b1cad3956579c63a70a7b85b69161b.zip
op-kernel-dev-af7acc3df7b1cad3956579c63a70a7b85b69161b.tar.gz
mfd: axp20x: Use dev->driver->of_match_table in axp20x_match_device()
In axp20x_match_device(), match the of_device_id table bound to the device driver instead of pointing to axp20x_of_match directly. This will allow us to keep axp20x_match_device() unmodified when we expand the axp20x driver into multiple ones covering different interface types. of_device_get_match_data() cannot be used here as we need to know if it failed to get a match, or if the match data value just happened to be 0, as it is for the AXP152. Signed-off-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'mm/cma.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud