Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mfd: core: Improve compile coverage of mfd_match_of_node_to_dev()

As of commit c7fe3bbfd622b5ee ('mfd: core: Use of_property_read_reg() to
parse "reg"'), all code in mfd_match_of_node_to_dev() compiles fine when
CONFIG_OF is disabled. As the sole caller of this function is
protected by IS_ENABLED(CONFIG_OF), the #ifdef inside the function can
be removed to increase build coverage, without impacting code size.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://patch.msgid.link/7b9a4a355c5da3fe812ead663285d05b64b84857.1764320964.git.geert+renesas@glider.be
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Geert Uytterhoeven and committed by
Lee Jones
360bc3ae ed30d029

-2
-2
drivers/mfd/mfd-core.c
··· 100 100 struct device_node *np, 101 101 const struct mfd_cell *cell) 102 102 { 103 - #if IS_ENABLED(CONFIG_OF) 104 103 struct mfd_of_node_entry *of_entry; 105 104 u64 of_node_addr; 106 105 ··· 132 133 133 134 of_node_get(np); 134 135 device_set_node(&pdev->dev, of_fwnode_handle(np)); 135 - #endif 136 136 return 0; 137 137 } 138 138