fbcon: allow fbcon to use the primary display driver
[safe/jmp/linux-2.6] / arch / i386 / video / fbdev.c
index 7fc712c..48fb38d 100644 (file)
 
 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);