diff options
Diffstat (limited to 'drivers/base/devcon.c')
-rw-r--r-- | drivers/base/devcon.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/base/devcon.c b/drivers/base/devcon.c index 09f28479b243..1d488dc5dd0c 100644 --- a/drivers/base/devcon.c +++ b/drivers/base/devcon.c | |||
@@ -133,19 +133,13 @@ static struct bus_type *generic_match_buses[] = { | |||
133 | NULL, | 133 | NULL, |
134 | }; | 134 | }; |
135 | 135 | ||
136 | static int device_fwnode_match(struct device *dev, const void *fwnode) | ||
137 | { | ||
138 | return dev_fwnode(dev) == fwnode; | ||
139 | } | ||
140 | |||
141 | static void *device_connection_fwnode_match(struct device_connection *con) | 136 | static void *device_connection_fwnode_match(struct device_connection *con) |
142 | { | 137 | { |
143 | struct bus_type *bus; | 138 | struct bus_type *bus; |
144 | struct device *dev; | 139 | struct device *dev; |
145 | 140 | ||
146 | for (bus = generic_match_buses[0]; bus; bus++) { | 141 | for (bus = generic_match_buses[0]; bus; bus++) { |
147 | dev = bus_find_device(bus, NULL, (void *)con->fwnode, | 142 | dev = bus_find_device_by_fwnode(bus, con->fwnode); |
148 | device_fwnode_match); | ||
149 | if (dev && !strncmp(dev_name(dev), con->id, strlen(con->id))) | 143 | if (dev && !strncmp(dev_name(dev), con->id, strlen(con->id))) |
150 | return dev; | 144 | return dev; |
151 | 145 | ||