]> git.baikalelectronics.ru Git - kernel.git/commit
media: ad5820: Add support for of-autoload
authorRicardo Ribalda Delgado <ribalda@kernel.org>
Mon, 7 Oct 2019 13:28:54 +0000 (10:28 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 24 Oct 2019 21:44:10 +0000 (18:44 -0300)
commit1e471110866b0691dfb63fe4d17cd9ac199b64da
tree9489eba44750ebeca6f8a2aac3a0876bea725d4a
parent573d08f66078aa75daed4b599c9cc0788a9b9593
media: ad5820: Add support for of-autoload

Since kernel 4.16, i2c devices with DT compatible tag are modprobed
using their DT modalias.
Without this patch, if this driver is build as module it would never
be autoprobed.

There is no need to mask it with CONFIG_OF to allow ACPI loading, this
also builds find with CONFIG_OF=n.

Signed-off-by: Ricardo Ribalda Delgado <ribalda@kernel.org>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/i2c/ad5820.c