diff options
| author | Dave Airlie <airlied@redhat.com> | 2017-09-29 14:34:38 +1000 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2017-09-29 13:02:28 -0400 |
| commit | 0e1c42fd181e7359be5c97655198551b6660f028 (patch) | |
| tree | b6a02e881b311c807f1f4ce9b77f0d3dcc4b037a /drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.h | |
| parent | amdgpu/dc: remove pointless returns in the i2caux constructor paths. (v2) (diff) | |
| download | linux-0e1c42fd181e7359be5c97655198551b6660f028.tar.gz linux-0e1c42fd181e7359be5c97655198551b6660f028.zip | |
amdgpu/dc: cleanup construct returns in gpio.
This is similiar to previous patches, don't return when we don't
need to, also do error checking before allocating memory, makes
it simpler to cleanup after.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.h')
| -rw-r--r-- | drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.h b/drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.h index fb41ee2be958..bca0cef18ff9 100644 --- a/drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.h +++ b/drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.h @@ -109,7 +109,7 @@ struct hw_gpio { #define HW_GPIO_FROM_BASE(hw_gpio_pin) \ container_of((hw_gpio_pin), struct hw_gpio, base) -bool dal_hw_gpio_construct( +void dal_hw_gpio_construct( struct hw_gpio *pin, enum gpio_id id, uint32_t en, |
