mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
gpio: Rename free() to rfree()
This function name conflicts with our desire to #define free() to something else on sandbox. Since it deals with resources, rename it to rfree(). Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -364,8 +364,8 @@ int _dm_gpio_free(struct udevice *dev, uint offset)
|
||||
uc_priv = dev_get_uclass_priv(dev);
|
||||
if (!uc_priv->name[offset])
|
||||
return -ENXIO;
|
||||
if (gpio_get_ops(dev)->free) {
|
||||
ret = gpio_get_ops(dev)->free(dev, offset);
|
||||
if (gpio_get_ops(dev)->rfree) {
|
||||
ret = gpio_get_ops(dev)->rfree(dev, offset);
|
||||
if (ret)
|
||||
return ret;
|
||||
}
|
||||
@@ -1043,8 +1043,8 @@ static int gpio_post_bind(struct udevice *dev)
|
||||
if (!reloc_done) {
|
||||
if (ops->request)
|
||||
ops->request += gd->reloc_off;
|
||||
if (ops->free)
|
||||
ops->free += gd->reloc_off;
|
||||
if (ops->rfree)
|
||||
ops->rfree += gd->reloc_off;
|
||||
if (ops->direction_input)
|
||||
ops->direction_input += gd->reloc_off;
|
||||
if (ops->direction_output)
|
||||
|
Reference in New Issue
Block a user