aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorLinus Walleij <[email protected]>2023-04-20 23:17:35 +0200
committerLinus Walleij <[email protected]>2023-05-17 09:15:25 +0200
commit21e5a2d10c8f319be4126f320855429842473640 (patch)
treefc10aca8105ac1fbe1bc4e6de55492fd0bf28adc /lib/mpi/mpi-sub-ui.c
parent38bd22dac71ef7b1dbaa44fdc99f7722c116a01d (diff)
misc: sram: Generate unique names for subpools
The current code will, if we do not specify unique labels for the SRAM subnodes, fail to register several nodes named the same. Example: sram@40020000 { (...) sram@0 { (...) }; sram@1000 { (...) }; }; Since the child->name in both cases will be "sram" the gen_pool_create() will fail because the name is not unique. Use dev_name() for the device as this will have bus ID set to the fully translated address for the node, and that will always be unique. Signed-off-by: Linus Walleij <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions