regulator: rt4801: Fix W=1 build warning when CONFIG_OF=n
authorChiYuan Huang <cy_huang@richtek.com>
Mon, 24 Aug 2020 02:05:13 +0000 (10:05 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 24 Aug 2020 13:17:54 +0000 (14:17 +0100)
commitc8b2c8949c45b01d75237331fc1387036b952d58
treea3f16744083902b39cd0bda64a4043dd8d87ae9d
parenta5f7949570dc7262d3239739b0cdaa001f935d4b
regulator: rt4801: Fix W=1 build warning when CONFIG_OF=n

Fix below warning when CONFIG_OF=n:

drivers/regulator/rt4801-regulator.c:206:34: warning: unused variable 'rt4801_of_id' [-Wunused-const-variable]
  206 | static const struct of_device_id rt4801_of_id[] = {
      |                                  ^~~~~~~~~~~~

Signed-off-by: ChiYuan Huang <cy_huang@richtek.com>
Reported-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/r/1598234713-8532-1-git-send-email-u0084500@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/rt4801-regulator.c