Skip to content

Commit

Permalink
[ATYFB]: Use pci_device_to_OF_node() in sparc.
Browse files Browse the repository at this point in the history
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Apr 26, 2007
1 parent fa449bd commit a02079c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/video/aty/atyfb_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit a02079c

Please sign in to comment.