aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2014-03-10 06:57:33 -0400
committerLee Jones <lee.jones@linaro.org>2014-03-19 04:58:41 -0400
commit416dc642afab52337d49d67170370b22b7057ab6 (patch)
treed52bfcef3be997c550ad0142d0588a1313aada13 /drivers/mfd
parent94b6c3dac0771509df6ee621c7038bb3c128d09a (diff)
mfd: syscon: Simplify syscon_match_pdevname()
Since we do not want to add new platform IDs for the syscon driver, there is no reason to iterate over IDs. This patch simplifies syscon_match_pdevname() function to remove such iteration. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/syscon.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/mfd/syscon.c b/drivers/mfd/syscon.c
index 26200565d6ab..dbea55de4397 100644
--- a/drivers/mfd/syscon.c
+++ b/drivers/mfd/syscon.c
@@ -69,13 +69,6 @@ EXPORT_SYMBOL_GPL(syscon_regmap_lookup_by_compatible);
69 69
70static int syscon_match_pdevname(struct device *dev, void *data) 70static int syscon_match_pdevname(struct device *dev, void *data)
71{ 71{
72 struct platform_device *pdev = to_platform_device(dev);
73 const struct platform_device_id *id = platform_get_device_id(pdev);
74
75 if (id)
76 if (!strcmp(id->name, (const char *)data))
77 return 1;
78
79 return !strcmp(dev_name(dev), (const char *)data); 72 return !strcmp(dev_name(dev), (const char *)data);
80} 73}
81 74