diff options
| author | Philipp Zabel <[email protected]> | 2017-03-20 10:25:16 +0000 |
|---|---|---|
| committer | Philipp Zabel <[email protected]> | 2017-03-21 17:19:43 +0000 |
| commit | 0ca10b60ceeb5372da01798ca68c116ae45a6eb6 (patch) | |
| tree | f287a4b83d49fffc1a7adcf50a941bf37907c776 /include/acpi/cppc_acpi.h | |
| parent | Linux 4.11-rc1 (diff) | |
| download | kernel-0ca10b60ceeb5372da01798ca68c116ae45a6eb6.tar.gz kernel-0ca10b60ceeb5372da01798ca68c116ae45a6eb6.zip | |
reset: fix optional reset_control_get stubs to return NULL
When RESET_CONTROLLER is not enabled, the optional reset_control_get
stubs should now also return NULL.
Since it is now valid for reset_control_assert/deassert/reset/status/put
to be called unconditionally, with NULL as an argument for optional
resets, the stubs are not allowed to warn anymore.
Fixes: bb475230b8e5 ("reset: make optional functions really optional")
Reported-by: Andrzej Hajda <[email protected]>
Tested-by: Andrzej Hajda <[email protected]>
Reviewed-by: Andrzej Hajda <[email protected]>
Cc: Ramiro Oliveira <[email protected]>
Signed-off-by: Philipp Zabel <[email protected]>
Diffstat (limited to 'include/acpi/cppc_acpi.h')
0 files changed, 0 insertions, 0 deletions
