drm: convert DT component matching to component_match_add_release()
Convert DT component matching to use component_match_add_release(). Acked-by: Jyri Sarha <jsarha@ti.com> Reviewed-by: Jyri Sarha <jsarha@ti.com> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk> Signed-off-by: Sean Paul <seanpaul@chromium.org> Link: http://patchwork.freedesktop.org/patch/msgid/E1bwo6l-0005Io-Q1@rmk-PC.armlinux.org.uk
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include <linux/of_graph.h>
|
||||
|
||||
struct component_master_ops;
|
||||
struct component_match;
|
||||
struct device;
|
||||
struct drm_device;
|
||||
struct drm_encoder;
|
||||
@@ -12,6 +13,10 @@ struct device_node;
|
||||
#ifdef CONFIG_OF
|
||||
extern uint32_t drm_of_find_possible_crtcs(struct drm_device *dev,
|
||||
struct device_node *port);
|
||||
extern void drm_of_component_match_add(struct device *master,
|
||||
struct component_match **matchptr,
|
||||
int (*compare)(struct device *, void *),
|
||||
struct device_node *node);
|
||||
extern int drm_of_component_probe(struct device *dev,
|
||||
int (*compare_of)(struct device *, void *),
|
||||
const struct component_master_ops *m_ops);
|
||||
@@ -25,6 +30,13 @@ static inline uint32_t drm_of_find_possible_crtcs(struct drm_device *dev,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void drm_of_component_match_add(struct device *master,
|
||||
struct component_match **matchptr,
|
||||
int (*compare)(struct device *, void *),
|
||||
struct device_node *node)
|
||||
{
|
||||
}
|
||||
|
||||
static inline int
|
||||
drm_of_component_probe(struct device *dev,
|
||||
int (*compare_of)(struct device *, void *),
|
||||
|
Reference in New Issue
Block a user