Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b40d0ed6 authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Tomi Valkeinen
Browse files

drm: omapdrm: dss: Don't unnecessarily cast to dev to pdev and back



The dss_unbind() function casts the struct device pointer to a struct
platform_device, only to later use the struct device pointer from
platform_device. Don't cast at all.

Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: default avatarSebastian Reichel <sebastian.reichel@collabora.co.uk>
parent 1c4b92ee
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1332,11 +1332,9 @@ static int dss_bind(struct device *dev)

static void dss_unbind(struct device *dev)
{
	struct platform_device *pdev = to_platform_device(dev);

	omapdss_set_is_initialized(false);

	component_unbind_all(&pdev->dev, NULL);
	component_unbind_all(dev, NULL);
}

static const struct component_master_ops dss_component_ops = {