[PATCH] leds: pca995x: Fix MODULE_DEVICE_TABLE for OF

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fix copy-paste error in MODULE_DEVICE_TABLE() for the OF table,
use the 'of' first parameter instead of duplicate 'i2c'.

Fixes: ee4e80b2962e ("leds: pca995x: Add support for PCA995X chips")
Signed-off-by: Marek Vasut <marex@xxxxxxx>
---
Cc: Conor Dooley <conor+dt@xxxxxxxxxx>
Cc: Isai Gaspar <isaiezequiel.gaspar@xxxxxxx>
Cc: Krzysztof Kozlowski <krzysztof.kozlowski+dt@xxxxxxxxxx>
Cc: Lee Jones <lee@xxxxxxxxxx>
Cc: Marek Vasut <marex@xxxxxxx>
Cc: Pavel Machek <pavel@xxxxxx>
Cc: Rob Herring <robh+dt@xxxxxxxxxx>
Cc: devicetree@xxxxxxxxxxxxxxx
Cc: linux-leds@xxxxxxxxxxxxxxx
---
NOTE: This should be added on top of leds-lj or squashed into the driver patch
---
 drivers/leds/leds-pca995x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/leds/leds-pca995x.c b/drivers/leds/leds-pca995x.c
index 4c387e628ba8f..9b7667a03c390 100644
--- a/drivers/leds/leds-pca995x.c
+++ b/drivers/leds/leds-pca995x.c
@@ -181,7 +181,7 @@ static const struct of_device_id pca995x_of_match[] = {
 	{ .compatible = "nxp,pca9955b", .data = (void *)1 /* B-type chip */ },
 	{},
 };
-MODULE_DEVICE_TABLE(i2c, pca995x_of_match);
+MODULE_DEVICE_TABLE(of, pca995x_of_match);
 
 static struct i2c_driver pca995x_driver = {
 	.driver = {
-- 
2.40.1




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux