hwspinlock: sprd: fixed warning of unused variable 'sprd_hwspinlock_of_match'
authorChunyan Zhang <chunyan.zhang@unisoc.com>
Thu, 12 Nov 2020 07:04:10 +0000 (15:04 +0800)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 18 Nov 2020 03:42:13 +0000 (21:42 -0600)
commit8266b809264caa23038ceab2811fc452cf936e84
treeee759b0abf380db3f8a91aee8c4461d32351468e
parent8308678ebde1cbca9fb628ba2e7b6e4ea0b15acf
hwspinlock: sprd: fixed warning of unused variable 'sprd_hwspinlock_of_match'

The macro function of_match_ptr() is NULL if CONFIG_OF is not set, in this
case Clang compiler would complain the of_device_id variable is unused.

Reviewed-by: Baolin Wang <baolin.wang7@gmail.com>
Reported-by: kernel test robot <lkp@intel.com>
Fixes: d8c8bbbb1aba ("hwspinlock: sprd: Add hardware spinlock driver")
Signed-off-by: Chunyan Zhang <chunyan.zhang@unisoc.com>
Link: https://lore.kernel.org/r/20201112070410.14810-1-zhang.lyra@gmail.com
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/hwspinlock/sprd_hwspinlock.c