Thread (4 messages) 4 messages, 3 authors, 2024-11-12

Re: [PATCHv2 net-next] net: use pdev instead of OF funcs

From: Marc Kleine-Budde <mkl@pengutronix.de>
Date: 2024-11-12 07:55:36
Also in: linux-arm-kernel, linux-can, linux-sunxi, lkml, netdev

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 <redacted>
---
 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 [off-list ref] # 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   |

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help