Commit 1b868ff
of: address: Remove duplicated functions
[ Upstream commit 3eb030c ]
The recently added of_bus_default_flags_translate() performs the exact
same operation as of_bus_pci_translate() and of_bus_isa_translate().
Avoid duplicated code replacing both of_bus_pci_translate() and
of_bus_isa_translate() with of_bus_default_flags_translate().
Signed-off-by: Herve Codina <herve.codina@bootlin.com>
Link: https://lore.kernel.org/r/20231017110221.189299-3-herve.codina@bootlin.com
Signed-off-by: Rob Herring <robh@kernel.org>
Stable-dep-of: 7f05e20 ("of: address: Preserve the flags portion on 1:1 dma-ranges mapping")
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent 19ec883 commit 1b868ff
1 file changed
Lines changed: 2 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | 224 | | |
229 | 225 | | |
230 | 226 | | |
| |||
334 | 330 | | |
335 | 331 | | |
336 | 332 | | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | 333 | | |
343 | 334 | | |
344 | 335 | | |
| |||
369 | 360 | | |
370 | 361 | | |
371 | 362 | | |
372 | | - | |
| 363 | + | |
373 | 364 | | |
374 | 365 | | |
375 | 366 | | |
| |||
381 | 372 | | |
382 | 373 | | |
383 | 374 | | |
384 | | - | |
| 375 | + | |
385 | 376 | | |
386 | 377 | | |
387 | 378 | | |
| |||
0 commit comments