fbdev: imsttfb: remove the dependency on PPC_OF
authorKevin Hao <haokexin@gmail.com>
Thu, 12 Mar 2015 12:32:45 +0000 (20:32 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 17 Mar 2015 09:04:31 +0000 (20:04 +1100)
The OF functionality has moved to a common place and be used by many
archs. So we don't need to depend on PPC_OF option any more. This is
a preparation for killing PPC_OF.

Signed-off-by: Kevin Hao <haokexin@gmail.com>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/video/fbdev/imsttfb.c

index aae10ce74f141e507e7068392bb135c06172d9ce..9b167f7ef6c698854a8fe4d05fdf4c3d2e9fffc7 100644 (file)
@@ -1470,15 +1470,13 @@ static int imsttfb_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
        unsigned long addr, size;
        struct imstt_par *par;
        struct fb_info *info;
-#ifdef CONFIG_PPC_OF
        struct device_node *dp;
        
        dp = pci_device_to_OF_node(pdev);
        if(dp)
                printk(KERN_INFO "%s: OF name %s\n",__func__, dp->name);
-       else
+       else if (IS_ENABLED(CONFIG_OF))
                printk(KERN_ERR "imsttfb: no OF node for pci device\n");
-#endif /* CONFIG_PPC_OF */
 
        info = framebuffer_alloc(sizeof(struct imstt_par), &pdev->dev);
 
@@ -1501,11 +1499,9 @@ static int imsttfb_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
        switch (pdev->device) {
                case PCI_DEVICE_ID_IMS_TT128: /* IMS,tt128mbA */
                        par->ramdac = IBM;
-#ifdef CONFIG_PPC_OF
                        if (dp && ((strcmp(dp->name, "IMS,tt128mb8") == 0) ||
                                   (strcmp(dp->name, "IMS,tt128mb8A") == 0)))
                                par->ramdac = TVP;
-#endif /* CONFIG_PPC_OF */
                        break;
                case PCI_DEVICE_ID_IMS_TT3D:  /* IMS,tt3d */
                        par->ramdac = TVP;