@@ -221,10 +221,6 @@ static u64 of_bus_pci_map(__be32 *addr, const __be32 *range, int na, int ns,
221
221
return da - cp ;
222
222
}
223
223
224
- static int of_bus_pci_translate (__be32 * addr , u64 offset , int na )
225
- {
226
- return of_bus_default_translate (addr + 1 , offset , na - 1 );
227
- }
228
224
#endif /* CONFIG_PCI */
229
225
230
226
int of_pci_address_to_resource (struct device_node * dev , int bar ,
@@ -334,11 +330,6 @@ static u64 of_bus_isa_map(__be32 *addr, const __be32 *range, int na, int ns,
334
330
return da - cp ;
335
331
}
336
332
337
- static int of_bus_isa_translate (__be32 * addr , u64 offset , int na )
338
- {
339
- return of_bus_default_translate (addr + 1 , offset , na - 1 );
340
- }
341
-
342
333
static unsigned int of_bus_isa_get_flags (const __be32 * addr )
343
334
{
344
335
unsigned int flags = 0 ;
@@ -369,7 +360,7 @@ static struct of_bus of_busses[] = {
369
360
.match = of_bus_pci_match ,
370
361
.count_cells = of_bus_pci_count_cells ,
371
362
.map = of_bus_pci_map ,
372
- .translate = of_bus_pci_translate ,
363
+ .translate = of_bus_default_flags_translate ,
373
364
.has_flags = true,
374
365
.get_flags = of_bus_pci_get_flags ,
375
366
},
@@ -381,7 +372,7 @@ static struct of_bus of_busses[] = {
381
372
.match = of_bus_isa_match ,
382
373
.count_cells = of_bus_isa_count_cells ,
383
374
.map = of_bus_isa_map ,
384
- .translate = of_bus_isa_translate ,
375
+ .translate = of_bus_default_flags_translate ,
385
376
.has_flags = true,
386
377
.get_flags = of_bus_isa_get_flags ,
387
378
},
0 commit comments