[PATCHv2 net-next] net: use pdev instead of OF funcs
Marc Kleine-Budde
mkl at pengutronix.de
Tue Nov 12 18:55:00 AEDT 2024
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 at gmail.com>
> ---
> 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 at pengutronix.de> # 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 |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20241112/cf83336a/attachment.sig>
More information about the Linuxppc-dev
mailing list