mfd: syscon: Remove unused helper syscon_base_lookup_by_pdevname
Subsystems (2)
PATCH 1/1 mfd: syscon: Remove unused helper syscon_base_lookup_by_pdevname
Nobody uses the exported helper syscon_base_lookup_by_pdevname, to lookup a syscon by device name. Let us remove it.
Signed-off-by Alexander Shiyan <[email protected]>
--- drivers/mfd/syscon.c | 15 --------------- include/mfd/syscon.h | 6 ------ 2 files changed, 21 deletions(-)
drivers/mfd/syscon.c +0 -15
@@ -142,21 +142,6 @@ static void __iomem *syscon_node_to_base(struct device_node *np)return syscon->base; } -void __iomem *syscon_base_lookup_by_pdevname (const char *s) -{ -struct syscon *syscon; -struct device *dev; - -for_each_device (dev) { -if (!strcmp (dev_name (dev), s)) { - syscon = dev->priv; -return syscon->base; - } - } - -return ERR_PTR (-ENODEV ); -} -void __iomem *syscon_base_lookup_by_phandle (struct device_node *np,const char *property) {
include/mfd/syscon.h +0 -6
@@ -17,7 +17,6 @@#include <regmap.h> #ifdef CONFIG_MFD_SYSCON -void __iomem *syscon_base_lookup_by_pdevname (const char *s);void __iomem *syscon_base_lookup_by_phandle (struct device_node *np,const char *property);struct regmap *syscon_node_to_regmap (struct device_node *np);
@@ -27,11 +26,6 @@ extern struct regmap *syscon_regmap_lookup_by_phandle(struct device_node *np, const char *property);#else -static inline void __iomem *syscon_base_lookup_by_pdevname (const char *s) -{ -return ERR_PTR (-ENOSYS ); -} -static inline void __iomem *syscon_base_lookup_by_phandle (struct device_node *np,const char *property) {
Signature · 1 line
2.39.1
Sascha Hauer
AppliedQuoted 8 lines · Alexander Shiyan
Nobody uses the exported helper
syscon_base_lookup_by_pdevname, to lookup a syscon by device name. Let us remove it.Signed-off-by Alexander Shiyan <[email protected]>--- drivers/mfd/syscon.c | 15 --------------- include/mfd/syscon.h | 6 ------ 2 files changed, 21 deletions(-)
Applied, thanks
Sascha
Quoted 56 lines
drivers/mfd/syscon.c +0
-15@@ -142,21 +142,6 @@ static void __iomem *syscon_node_to_base(struct device_node *np)return syscon->base; } -void __iomem *syscon_base_lookup_by_pdevname (const char *s) -{ -struct syscon *syscon; -struct device *dev; - -for_each_device (dev) { -if (!strcmp (dev_name (dev), s)) { - syscon = dev->priv; -return syscon->base; - } - } - -return ERR_PTR (-ENODEV ); -} -void __iomem *syscon_base_lookup_by_phandle (struct device_node *np,const char *property) {include/mfd/syscon.h +0
-6@@ -17,7 +17,6 @@#include <regmap.h> #ifdef CONFIG_MFD_SYSCON -void __iomem *syscon_base_lookup_by_pdevname (const char *s);void __iomem *syscon_base_lookup_by_phandle (struct device_node *np,const char *property);struct regmap *syscon_node_to_regmap (struct device_node *np);@@ -27,11 +26,6 @@ extern struct regmap *syscon_regmap_lookup_by_phandle(struct device_node *np, const char *property);#else -static inline void __iomem *syscon_base_lookup_by_pdevname (const char *s) -{ -return ERR_PTR (-ENOSYS ); -} -static inline void __iomem *syscon_base_lookup_by_phandle (struct device_node *np,const char *property) {Signature · 1 line
2.39.1
Signature · 4 lines
Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |