Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142741774
D50870.id157091.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
771 B
Referenced Files
None
Subscribers
None
D50870.id157091.diff
View Options
diff --git a/sys/dev/regulator/regulator_fixed.c b/sys/dev/regulator/regulator_fixed.c
--- a/sys/dev/regulator/regulator_fixed.c
+++ b/sys/dev/regulator/regulator_fixed.c
@@ -100,12 +100,8 @@
regnode_get_gpio_entry(struct gpiobus_pin *gpio_pin)
{
struct gpio_entry *entry, *tmp;
- device_t busdev;
int rv;
- busdev = GPIO_GET_BUS(gpio_pin->dev);
- if (busdev == NULL)
- return (NULL);
entry = malloc(sizeof(struct gpio_entry), M_FIXEDREGULATOR,
M_WAITOK | M_ZERO);
@@ -122,8 +118,7 @@
}
/* Reserve pin. */
- /* XXX Can we call gpiobus_acquire_pin() with gpio_list_mtx held? */
- rv = gpiobus_acquire_pin(busdev, gpio_pin->pin);
+ rv = gpio_pin_acquire(gpio_pin);
if (rv != 0) {
mtx_unlock(&gpio_list_mtx);
free(entry, M_FIXEDREGULATOR);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 23, 11:30 PM (15 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27889172
Default Alt Text
D50870.id157091.diff (771 B)
Attached To
Mode
D50870: regulator: don't use internal gpiobus function
Attached
Detach File
Event Timeline
Log In to Comment