Commit d119b7cb authored by Dmitry Baryshkov's avatar Dmitry Baryshkov Committed by Rob Clark
Browse files

drm/msm/dsi: phy: use of_device_get_match_data

parent 9e66ccd6
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -671,7 +671,6 @@ static int dsi_phy_driver_probe(struct platform_device *pdev)
{
	struct msm_dsi_phy *phy;
	struct device *dev = &pdev->dev;
	const struct of_device_id *match;
	u32 phy_type;
	int ret;

@@ -679,10 +678,6 @@ static int dsi_phy_driver_probe(struct platform_device *pdev)
	if (!phy)
		return -ENOMEM;

	match = of_match_node(dsi_phy_dt_match, dev->of_node);
	if (!match)
		return -ENODEV;

	phy->provided_clocks = devm_kzalloc(dev,
			struct_size(phy->provided_clocks, hws, NUM_PROVIDED_CLKS),
			GFP_KERNEL);
@@ -691,7 +686,10 @@ static int dsi_phy_driver_probe(struct platform_device *pdev)

	phy->provided_clocks->num = NUM_PROVIDED_CLKS;

	phy->cfg = match->data;
	phy->cfg = of_device_get_match_data(&pdev->dev);
	if (!phy->cfg)
		return -ENODEV;

	phy->pdev = pdev;

	phy->id = dsi_phy_get_id(phy);