opp: ti: Use device_get_match_data()
authorRob Herring <robh@kernel.org>
Wed, 1 Nov 2023 14:45:00 +0000 (09:45 -0500)
committerViresh Kumar <viresh.kumar@linaro.org>
Thu, 23 Nov 2023 05:58:46 +0000 (11:28 +0530)
commit4c58e9d85c24b5281a2d39a3e6510b5f3b7fc687
tree5b39cd448875530ee602218472b1734015deceeb
parentb85ea95d086471afb4ad062012a4d73cd328fa86
opp: ti: Use device_get_match_data()

Use preferred device_get_match_data() instead of of_match_device() to
get the driver match data. With this, adjust the includes to explicitly
include the correct headers.

As this driver only does DT based matching, of_match_device() will never
return NULL if we've gotten to probe(). Therefore, the NULL check and
error return for it can be dropped.

Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/opp/ti-opp-supply.c