Nobody uses the exported helper syscon_regmap_lookup_by_pdevname, to lookup a device by name. Let us remove it.
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -19,7 +19,6 @@ struct device_node; · 18 unmodified lines | ||
| 19 | 19 | #ifdef CONFIG_MFD_SYSCON |
| 20 | 20 | extern struct regmap *syscon_node_to_regmap(struct device_node *np); |
| 21 | 21 | extern struct regmap *syscon_regmap_lookup_by_compatible(const char *s); |
| 22 | −extern struct regmap *syscon_regmap_lookup_by_pdevname(const char *s); | |
| 23 | 22 | extern struct regmap *syscon_regmap_lookup_by_phandle( |
| 24 | 23 | struct device_node *np, |
| 25 | 24 | const char *property); |
| @@ -34,11 +33,6 @@ static inline struct regmap *syscon_regmap_lookup_by_compatible(const char *s) · 8 unmodified lines | ||
| 34 | 33 | return ERR_PTR(-ENOTSUPP); |
| 35 | 34 | } |
| 36 | 35 | |
| 37 | −static inline struct regmap *syscon_regmap_lookup_by_pdevname(const char *s) | |
| 38 | −{ | |
| 39 | − return ERR_PTR(-ENOTSUPP); | |
| 40 | −} | |
| 41 | − | |
| 42 | 36 | static inline struct regmap *syscon_regmap_lookup_by_phandle( |
| 43 | 37 | struct device_node *np, |
| 44 | 38 | const char *property) |