|
@@ -17,7 +17,6 @@
|
|
|
#include <linux/device.h>
|
|
|
#include <linux/fb.h>
|
|
|
#include <linux/module.h>
|
|
|
-#include <linux/of_graph.h>
|
|
|
#include <linux/platform_device.h>
|
|
|
#include <drm/drmP.h>
|
|
|
#include <drm/drm_fb_helper.h>
|
|
@@ -412,36 +411,6 @@ int imx_drm_encoder_parse_of(struct drm_device *drm,
|
|
|
}
|
|
|
EXPORT_SYMBOL_GPL(imx_drm_encoder_parse_of);
|
|
|
|
|
|
-/*
|
|
|
- * @node: device tree node containing encoder input ports
|
|
|
- * @encoder: drm_encoder
|
|
|
- */
|
|
|
-int imx_drm_encoder_get_mux_id(struct device_node *node,
|
|
|
- struct drm_encoder *encoder)
|
|
|
-{
|
|
|
- struct imx_drm_crtc *imx_crtc = imx_drm_find_crtc(encoder->crtc);
|
|
|
- struct device_node *ep;
|
|
|
- struct of_endpoint endpoint;
|
|
|
- struct device_node *port;
|
|
|
- int ret;
|
|
|
-
|
|
|
- if (!node || !imx_crtc)
|
|
|
- return -EINVAL;
|
|
|
-
|
|
|
- for_each_endpoint_of_node(node, ep) {
|
|
|
- port = of_graph_get_remote_port(ep);
|
|
|
- of_node_put(port);
|
|
|
- if (port == imx_crtc->crtc->port) {
|
|
|
- ret = of_graph_parse_endpoint(ep, &endpoint);
|
|
|
- of_node_put(ep);
|
|
|
- return ret ? ret : endpoint.port;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- return -EINVAL;
|
|
|
-}
|
|
|
-EXPORT_SYMBOL_GPL(imx_drm_encoder_get_mux_id);
|
|
|
-
|
|
|
static const struct drm_ioctl_desc imx_drm_ioctls[] = {
|
|
|
/* none so far */
|
|
|
};
|