mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
drm/bridge: microchip-lvds: Remove unused drm_panel and redundant port node lookup
Drop the unused drm_panel field from the mchp_lvds structure, and remove the unnecessary port device node lookup, as devm_drm_of_get_bridge() already performs the required checks internally. Signed-off-by: Dharma Balasubiramani <dharma.b@microchip.com> Reviewed-by: Maxime Ripard <mripard@kernel.org> Link: https://patch.msgid.link/20250625-microchip-lvds-v6-1-7ce91f89d35a@microchip.com Signed-off-by: Manikandan Muralidharan <manikandan.m@microchip.com>
This commit is contained in:
parent
a2f9e4be82
commit
ec3c887a7c
|
|
@ -23,7 +23,6 @@
|
|||
#include <drm/drm_atomic_helper.h>
|
||||
#include <drm/drm_bridge.h>
|
||||
#include <drm/drm_of.h>
|
||||
#include <drm/drm_panel.h>
|
||||
#include <drm/drm_print.h>
|
||||
#include <drm/drm_probe_helper.h>
|
||||
#include <drm/drm_simple_kms_helper.h>
|
||||
|
|
@ -56,7 +55,6 @@ struct mchp_lvds {
|
|||
struct device *dev;
|
||||
void __iomem *regs;
|
||||
struct clk *pclk;
|
||||
struct drm_panel *panel;
|
||||
struct drm_bridge bridge;
|
||||
struct drm_bridge *panel_bridge;
|
||||
};
|
||||
|
|
@ -151,7 +149,6 @@ static int mchp_lvds_probe(struct platform_device *pdev)
|
|||
{
|
||||
struct device *dev = &pdev->dev;
|
||||
struct mchp_lvds *lvds;
|
||||
struct device_node *port;
|
||||
int ret;
|
||||
|
||||
if (!dev->of_node)
|
||||
|
|
@ -173,19 +170,6 @@ static int mchp_lvds_probe(struct platform_device *pdev)
|
|||
return dev_err_probe(lvds->dev, PTR_ERR(lvds->pclk),
|
||||
"could not get pclk_lvds\n");
|
||||
|
||||
port = of_graph_get_remote_node(dev->of_node, 1, 0);
|
||||
if (!port) {
|
||||
dev_err(dev,
|
||||
"can't find port point, please init lvds panel port!\n");
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
lvds->panel = of_drm_find_panel(port);
|
||||
of_node_put(port);
|
||||
|
||||
if (IS_ERR(lvds->panel))
|
||||
return -EPROBE_DEFER;
|
||||
|
||||
lvds->panel_bridge = devm_drm_of_get_bridge(dev, dev->of_node, 1, 0);
|
||||
|
||||
if (IS_ERR(lvds->panel_bridge))
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user