summaryrefslogtreecommitdiffstats
path: root/arch/i386/video/fbdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/i386/video/fbdev.c')
-rw-r--r--arch/i386/video/fbdev.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/i386/video/fbdev.c b/arch/i386/video/fbdev.c
index 7fc712c..48fb38d 100644
--- a/arch/i386/video/fbdev.c
+++ b/arch/i386/video/fbdev.c
@@ -13,13 +13,11 @@
int fb_is_primary_device(struct fb_info *info)
{
- struct device *device;
+ struct device *device = info->device;
struct pci_dev *pci_dev = NULL;
struct resource *res = NULL;
int retval = 0;
- device = info->device;
-
if (device)
pci_dev = to_pci_dev(device);
OpenPOWER on IntegriCloud