]> git.baikalelectronics.ru Git - kernel.git/commit
media: i2c: max9271: Add MODULE_* macros
authorJacopo Mondi <jacopo+renesas@jmondi.org>
Wed, 10 Feb 2021 15:49:08 +0000 (16:49 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 10 Feb 2021 21:26:04 +0000 (22:26 +0100)
commit6144407eaca67f515e6384e6211cff0cc21011f6
tree038c1107308057e90c7c2e2ef22d99c0e9ddfef5
parentc5d5d4476108d63e55ac494ea4229175e62d9106
media: i2c: max9271: Add MODULE_* macros

Since commit c5d5d4476108 ("media: i2c: Kconfig: Make MAX9271
a module") the max9271 library is built as a module but no
MODULE_*() attributes were specified, causing a build error
due to missing license information.

ERROR: modpost: missing MODULE_LICENSE() in drivers/media/i2c/max9271.o

Fix this by adding MODULE attributes to the driver.

Fixes: c5d5d4476108 ("media: i2c: Kconfig: Make MAX9271 a module")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Reported-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/max9271.c