[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-id: <1382365111-6533-6-git-send-email-t.stanislaws@samsung.com>
Date: Mon, 21 Oct 2013 16:18:24 +0200
From: Tomasz Stanislawski <t.stanislaws@...sung.com>
To: devicetree@...r.kernel.org, linux-samsung-soc@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: dri-devel@...ts.freedesktop.org, kyungmin.park@...sung.com,
t.figa@...sung.com, kishon@...com, sw0312.kim@...sung.com,
inki.dae@...sung.com, rahul.sharma@...sung.com,
kgene.kim@...sung.com, s.nawrocki@...sung.com,
thomas.abraham@...aro.org, mturquette@...aro.org,
Tomasz Stanislawski <t.stanislaws@...sung.com>
Subject: [RFC 05/12] phy: use of_phy_simple_xlate for NULL xlate function
Use default handler of_phy_simple_xlate() when NULL is passed as argument to
of_phy_provider_register().
Signed-off-by: Tomasz Stanislawski <t.stanislaws@...sung.com>
---
drivers/phy/phy-core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/phy/phy-core.c b/drivers/phy/phy-core.c
index 03cf8fb..c38ae1e7 100644
--- a/drivers/phy/phy-core.c
+++ b/drivers/phy/phy-core.c
@@ -575,7 +575,7 @@ struct phy_provider *__of_phy_provider_register(struct device *dev,
phy_provider->dev = dev;
phy_provider->owner = owner;
- phy_provider->of_xlate = of_xlate;
+ phy_provider->of_xlate = of_xlate ? of_xlate : of_phy_simple_xlate;
mutex_lock(&phy_provider_mutex);
list_add_tail(&phy_provider->list, &phy_provider_list);
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists