mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
[PATCH] powerpc: Remove device_node addrs/n_addr
The pre-parsed addrs/n_addrs fields in struct device_node are finally gone. Remove the dodgy heuristics that did that parsing at boot and remove the fields themselves since we now have a good replacement with the new OF parsing code. This patch also fixes a bunch of drivers to use the new code instead, so that at least pmac32, pseries, iseries and g5 defconfigs build. Signed-off-by: Benjamin Herrenschmidt <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
This commit is contained in:
parent
9cf84d7c97
commit
cc5d0189b9
31 changed files with 793 additions and 1106 deletions
|
|
@ -1271,7 +1271,7 @@ static int
|
|||
pmac_ide_setup_device(pmac_ide_hwif_t *pmif, ide_hwif_t *hwif)
|
||||
{
|
||||
struct device_node *np = pmif->node;
|
||||
int *bidp, i;
|
||||
int *bidp;
|
||||
|
||||
pmif->cable_80 = 0;
|
||||
pmif->broken_dma = pmif->broken_dma_warn = 0;
|
||||
|
|
@ -1430,7 +1430,7 @@ pmac_ide_macio_attach(struct macio_dev *mdev, const struct of_device_id *match)
|
|||
pmif = &pmac_ide[i];
|
||||
hwif = &ide_hwifs[i];
|
||||
|
||||
if (mdev->ofdev.node->n_addrs == 0) {
|
||||
if (macio_resource_count(mdev) == 0) {
|
||||
printk(KERN_WARNING "ide%d: no address for %s\n",
|
||||
i, mdev->ofdev.node->full_name);
|
||||
return -ENXIO;
|
||||
|
|
|
|||
Loading…
Reference in a new issue