}
 EXPORT_SYMBOL(fbtft_dbg_hex);
 
-#ifdef CONFIG_OF
 static int fbtft_request_one_gpio(struct fbtft_par *par,
                                  const char *name, int index,
                                  struct gpio_desc **gpiop)
        return ret;
 }
 
-static int fbtft_request_gpios_dt(struct fbtft_par *par)
+static int fbtft_request_gpios(struct fbtft_par *par)
 {
        int i;
        int ret;
 
-       if (!par->info->device->of_node)
-               return -EINVAL;
-
        ret = fbtft_request_one_gpio(par, "reset", 0, &par->gpio.reset);
        if (ret)
                return ret;
 
        return 0;
 }
-#endif
 
 #ifdef CONFIG_FB_BACKLIGHT
 static int fbtft_backlight_update_status(struct backlight_device *bd)
 }
 EXPORT_SYMBOL(fbtft_unregister_framebuffer);
 
-#ifdef CONFIG_OF
 /**
  * fbtft_init_display_dt() - Device Tree init_display() function
  * @par: Driver data
 
        return 0;
 }
-#endif
 
 /**
  * fbtft_init_display() - Generic init_display() function
        return 0;
 }
 
-#ifdef CONFIG_OF
 /* returns 0 if the property is not present */
 static u32 fbtft_of_value(struct device_node *node, const char *propname)
 {
                pdata->display.backlight = 1;
        if (of_find_property(node, "init", NULL))
                pdata->display.fbtftops.init_display = fbtft_init_display_dt;
-       pdata->display.fbtftops.request_gpios = fbtft_request_gpios_dt;
+       pdata->display.fbtftops.request_gpios = fbtft_request_gpios;
 
        return pdata;
 }
-#else
-static struct fbtft_platform_data *fbtft_probe_dt(struct device *dev)
-{
-       dev_err(dev, "Missing platform data\n");
-       return ERR_PTR(-EINVAL);
-}
-#endif
 
 /**
  * fbtft_probe_common() - Generic device probe() helper function