diff options
Diffstat (limited to 'drivers/macintosh/macio_asic.c')
-rw-r--r-- | drivers/macintosh/macio_asic.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/macintosh/macio_asic.c b/drivers/macintosh/macio_asic.c index 26a303a1d1ab..67fe13ffe90b 100644 --- a/drivers/macintosh/macio_asic.c +++ b/drivers/macintosh/macio_asic.c | |||
@@ -248,7 +248,7 @@ static void macio_create_fixup_irq(struct macio_dev *dev, int index, | |||
248 | 248 | ||
249 | static void macio_add_missing_resources(struct macio_dev *dev) | 249 | static void macio_add_missing_resources(struct macio_dev *dev) |
250 | { | 250 | { |
251 | struct device_node *np = dev->ofdev.node; | 251 | struct device_node *np = dev->ofdev.dev.of_node; |
252 | unsigned int irq_base; | 252 | unsigned int irq_base; |
253 | 253 | ||
254 | /* Gatwick has some missing interrupts on child nodes */ | 254 | /* Gatwick has some missing interrupts on child nodes */ |
@@ -289,7 +289,7 @@ static void macio_add_missing_resources(struct macio_dev *dev) | |||
289 | 289 | ||
290 | static void macio_setup_interrupts(struct macio_dev *dev) | 290 | static void macio_setup_interrupts(struct macio_dev *dev) |
291 | { | 291 | { |
292 | struct device_node *np = dev->ofdev.node; | 292 | struct device_node *np = dev->ofdev.dev.of_node; |
293 | unsigned int irq; | 293 | unsigned int irq; |
294 | int i = 0, j = 0; | 294 | int i = 0, j = 0; |
295 | 295 | ||
@@ -317,7 +317,7 @@ static void macio_setup_interrupts(struct macio_dev *dev) | |||
317 | static void macio_setup_resources(struct macio_dev *dev, | 317 | static void macio_setup_resources(struct macio_dev *dev, |
318 | struct resource *parent_res) | 318 | struct resource *parent_res) |
319 | { | 319 | { |
320 | struct device_node *np = dev->ofdev.node; | 320 | struct device_node *np = dev->ofdev.dev.of_node; |
321 | struct resource r; | 321 | struct resource r; |
322 | int index; | 322 | int index; |
323 | 323 | ||
@@ -373,7 +373,7 @@ static struct macio_dev * macio_add_one_device(struct macio_chip *chip, | |||
373 | 373 | ||
374 | dev->bus = &chip->lbus; | 374 | dev->bus = &chip->lbus; |
375 | dev->media_bay = in_bay; | 375 | dev->media_bay = in_bay; |
376 | dev->ofdev.node = np; | 376 | dev->ofdev.dev.of_node = np; |
377 | dev->ofdev.dma_mask = 0xffffffffUL; | 377 | dev->ofdev.dma_mask = 0xffffffffUL; |
378 | dev->ofdev.dev.dma_mask = &dev->ofdev.dma_mask; | 378 | dev->ofdev.dev.dma_mask = &dev->ofdev.dma_mask; |
379 | dev->ofdev.dev.parent = parent; | 379 | dev->ofdev.dev.parent = parent; |
@@ -494,9 +494,9 @@ static void macio_pci_add_devices(struct macio_chip *chip) | |||
494 | } | 494 | } |
495 | 495 | ||
496 | /* Add media bay devices if any */ | 496 | /* Add media bay devices if any */ |
497 | pnode = mbdev->ofdev.dev.of_node; | ||
497 | if (mbdev) | 498 | if (mbdev) |
498 | for (np = NULL; (np = of_get_next_child(mbdev->ofdev.node, np)) | 499 | for (np = NULL; (np = of_get_next_child(pnode, np)) != NULL;) { |
499 | != NULL;) { | ||
500 | if (macio_skip_device(np)) | 500 | if (macio_skip_device(np)) |
501 | continue; | 501 | continue; |
502 | of_node_get(np); | 502 | of_node_get(np); |
@@ -506,9 +506,9 @@ static void macio_pci_add_devices(struct macio_chip *chip) | |||
506 | } | 506 | } |
507 | 507 | ||
508 | /* Add serial ports if any */ | 508 | /* Add serial ports if any */ |
509 | pnode = sdev->ofdev.dev.of_node; | ||
509 | if (sdev) { | 510 | if (sdev) { |
510 | for (np = NULL; (np = of_get_next_child(sdev->ofdev.node, np)) | 511 | for (np = NULL; (np = of_get_next_child(pnode, np)) != NULL;) { |
511 | != NULL;) { | ||
512 | if (macio_skip_device(np)) | 512 | if (macio_skip_device(np)) |
513 | continue; | 513 | continue; |
514 | of_node_get(np); | 514 | of_node_get(np); |