diff options
author | Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> | 2017-03-29 20:43:52 +0200 |
---|---|---|
committer | Eduardo Valentin <edubezval@gmail.com> | 2017-03-31 06:41:48 +0200 |
commit | d51546c0db975a4750161d17eef62dfcf9eedc90 (patch) | |
tree | 86f6a3a865e2851724e78285249567ff7934e194 /drivers/md/linear.c | |
parent | thermal: rcar_gen3_thermal: remove unneeded mutex (diff) | |
download | linux-d51546c0db975a4750161d17eef62dfcf9eedc90.tar.xz linux-d51546c0db975a4750161d17eef62dfcf9eedc90.zip |
thermal: rcar_gen3_thermal: check that TSC exists before memory allocation
Move the check for a TSC resource before allocating memory for a new
TSC. If no TSC is found there is little point in allocating memory for
it.
Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Diffstat (limited to 'drivers/md/linear.c')
0 files changed, 0 insertions, 0 deletions