mirror-linux/arch/m68k/coldfire
Heiner Kallweit 39e94fdce4 net: phy: fixed: let fixed_phy_add always use addr 0 and remove return value
We have only two users of fixed_phy_add(), both use address 0 and
ignore the return value. So simplify fixed_phy_add() accordingly.

Whilst at it, constify the fixed_phy_status configs.

Note:
fixed_phy_add() is a legacy function which shouldn't be used in new
code, as it's use may be problematic:
- No check whether a fixed phy exists already at the given address
- If fixed_phy_register() is called afterwards by any other driver,
  then it will also use phy_addr 0, because fixed_phy_add() ignores
  the ida which manages address assignment
Drivers using a fixed phy created by fixed_phy_add() in platform code,
should dynamically create a fixed phy with fixed_phy_register()
instead.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://patch.msgid.link/762700e5-a0b1-41af-aa03-929822a39475@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-08-26 17:19:02 -07:00
..
Makefile kbuild: use obj-y instead extra-y for objects placed at the head 2022-10-02 18:04:05 +09:00
amcore.c
cache.c
clk.c m68k: coldfire: return success for clk_enable(NULL) 2021-08-23 08:40:04 +10:00
device.c m68k: coldfire/device.c: only build FEC when HW macros are defined 2024-11-11 08:57:01 +10:00
dma_timer.c m68k: coldfire: dma_timer: ERROR: "foo __init bar" should be "foo __init bar" 2023-08-21 08:45:36 +10:00
entry.S m68k: Replace GPL 2.0+ README.legal boilerplate with SPDX 2023-10-06 10:03:04 +02:00
firebee.c
gpio.c treewide: rename GPIO set callbacks back to their original names 2025-08-07 10:07:06 +02:00
head.S
intc-2.c m68k: Fix syntax errors in comments 2022-07-25 09:01:09 +10:00
intc-525x.c
intc-5249.c
intc-5272.c
intc-simr.c
intc.c m68k: coldfire: make mcf_maskimr() static 2023-10-23 08:22:22 +10:00
m53xx.c m68k: fix typos in comments 2022-05-16 13:18:30 +10:00
m54xx.c
m520x.c m68k: coldfire: remove private clk_get/clk_put 2021-06-08 17:00:09 +02:00
m523x.c m68k: coldfire: make symbol m523x_clk_lookup static 2022-07-25 09:01:09 +10:00
m525x.c m68k/coldfire: change pll var. to clk_pll 2021-07-26 08:41:38 +10:00
m527x.c
m528x.c
m5206.c
m5249.c
m5272.c net: phy: fixed: let fixed_phy_add always use addr 0 and remove return value 2025-08-26 17:19:02 -07:00
m5307.c
m5407.c
m5441x.c m68k: coldfire: Use proper clock rate for timers 2025-01-13 08:51:07 +10:00
mcf8390.c
nettel.c
pci.c m68k: fix typos in comments 2022-05-16 13:18:30 +10:00
pit.c
reset.c
sltimers.c
stmark2.c m68k: stmark2: update board setup 2021-08-23 08:40:04 +10:00
timers.c
vectors.c arch: include linux/cpu.h for trap_init() prototype 2023-11-23 11:32:31 +01:00