diff options
Diffstat (limited to 'arch/i386')
-rw-r--r-- | arch/i386/video/fbdev.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/i386/video/fbdev.c b/arch/i386/video/fbdev.c index 7fc712c46a64..48fb38d7d2c0 100644 --- a/arch/i386/video/fbdev.c +++ b/arch/i386/video/fbdev.c | |||
@@ -13,13 +13,11 @@ | |||
13 | 13 | ||
14 | int fb_is_primary_device(struct fb_info *info) | 14 | int fb_is_primary_device(struct fb_info *info) |
15 | { | 15 | { |
16 | struct device *device; | 16 | struct device *device = info->device; |
17 | struct pci_dev *pci_dev = NULL; | 17 | struct pci_dev *pci_dev = NULL; |
18 | struct resource *res = NULL; | 18 | struct resource *res = NULL; |
19 | int retval = 0; | 19 | int retval = 0; |
20 | 20 | ||
21 | device = info->device; | ||
22 | |||
23 | if (device) | 21 | if (device) |
24 | pci_dev = to_pci_dev(device); | 22 | pci_dev = to_pci_dev(device); |
25 | 23 | ||