Re: [PATCH v2] opp: ti: Use device_get_match_data()

From: Viresh Kumar
Date: Thu Nov 02 2023 - 01:51:53 EST


On 01-11-23, 09:45, Rob Herring wrote:
> 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@xxxxxxxxxx>
> ---
> v2:
> - Add missing commit msg
> ---
> drivers/opp/ti-opp-supply.c | 13 +++----------
> 1 file changed, 3 insertions(+), 10 deletions(-)

Applied. Thanks.

--
viresh