ソースを参照

of/dma: fix build breakage in ppc4xx adma driver

Convert ppc4xx adma driver to use new node pointer location

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Acked-by: Anatolij Gustschin <agust@denx.de>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Dan Williams 15 年 前
コミット
3e6b02d9f5
1 ファイル変更3 行追加1 行削除
  1. 3 1
      drivers/dma/ppc4xx/adma.c

+ 3 - 1
drivers/dma/ppc4xx/adma.c

@@ -4257,10 +4257,12 @@ static int ppc440spe_adma_setup_irqs(struct ppc440spe_adma_device *adev,
 				     struct ppc440spe_adma_chan *chan,
 				     struct ppc440spe_adma_chan *chan,
 				     int *initcode)
 				     int *initcode)
 {
 {
+	struct of_device *ofdev;
 	struct device_node *np;
 	struct device_node *np;
 	int ret;
 	int ret;
 
 
-	np = container_of(adev->dev, struct of_device, dev)->node;
+	ofdev = container_of(adev->dev, struct of_device, dev);
+	np = ofdev->dev.of_node;
 	if (adev->id != PPC440SPE_XOR_ID) {
 	if (adev->id != PPC440SPE_XOR_ID) {
 		adev->err_irq = irq_of_parse_and_map(np, 1);
 		adev->err_irq = irq_of_parse_and_map(np, 1);
 		if (adev->err_irq == NO_IRQ) {
 		if (adev->err_irq == NO_IRQ) {