bmips: bcm6368-enetsw: refactor probe
authorÁlvaro Fernández Rojas <noltari@gmail.com>
Tue, 28 Mar 2023 17:36:59 +0000 (19:36 +0200)
committerÁlvaro Fernández Rojas <noltari@gmail.com>
Tue, 28 Mar 2023 17:36:59 +0000 (19:36 +0200)
commit414ca706849d19294ac1e90b370dcb822704757e
treee8b32b2efb15351d0e674e01f5fa23f42d810558
parent4d99f0ce4d01b31a3f67bc21e282f2a02c41422f
bmips: bcm6368-enetsw: refactor probe

- Switch to devm functions where possible.
- Fix probing when no resets provided.
- Properly check pointers (IS_ERR_OR_NULL/PTR_ERR).
- Add probe info.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
target/linux/bmips/files/drivers/net/ethernet/broadcom/bcm6368-enetsw.c