Re: [PATCHv2 net-next] net: use pdev instead of OF funcs
From: Marc Kleine-Budde
Date: Tue Nov 12 2024 - 03:04:02 EST
On 11.11.2024 13:03:16, Rosen Penev wrote:
> np here is the node coming from platform_device. No children are used.
>
> I changed irq_of_parse_and_map to platform_get_irq to pass it directly.
>
> I changed of_address_to_resource to platform_get_resource for the same
> reason.
>
> It ends up being the same.
You should describe in an imperative way your changes. Something like:
Modernize IRQ resource acquisition.
Replace irq_of_parse_and_map() by platform_get_irq()
...and list the other changes, too.
> Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx>
> ---
> v2: fixed compilation errors. Also removed non devm transformations.
> Those will be handled separately. Also reworded description.
> drivers/net/can/grcan.c | 2 +-
> drivers/net/can/mscan/mpc5xxx_can.c | 2 +-
Reviewed by: Marc Kleine-Budde <mkl@xxxxxxxxxxxxxx> # for CAN
regards,
Marc
--
Pengutronix e.K. | Marc Kleine-Budde |
Embedded Linux | https://www.pengutronix.de |
Vertretung Nürnberg | Phone: +49-5121-206917-129 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 |
Attachment:
signature.asc
Description: PGP signature