[ATYFB]: Use pci_device_to_OF_node() in sparc.
authorDavid S. Miller <davem@sunset.davemloft.net>
Thu, 1 Mar 2007 01:02:45 +0000 (17:02 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 26 Apr 2007 08:55:01 +0000 (01:55 -0700)
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/video/aty/atyfb_base.c

index d7627fc4f11ee82d094a763e8225a2e26172c974..8514f2a6f060ccd0d578e10df3ef16ae9b6793bc 100644 (file)
@@ -2899,7 +2899,7 @@ static int __devinit atyfb_setup_sparc(struct pci_dev *pdev,
                        struct fb_info *info, unsigned long addr)
 {
        struct atyfb_par *par = info->par;
-       struct pcidev_cookie *pcp;
+       struct device_node *dp;
        char prop[128];
        int node, len, i, j, ret;
        u32 mem, chip_id;
@@ -3037,8 +3037,8 @@ static int __devinit atyfb_setup_sparc(struct pci_dev *pdev,
                        node = 0;
        }
 
-       pcp = pdev->sysdata;
-       if (node == pcp->prom_node->node) {
+       dp = pci_device_to_OF_node(pdev);
+       if (node == dp->node) {
                struct fb_var_screeninfo *var = &default_var;
                unsigned int N, P, Q, M, T, R;
                u32 v_total, h_total;