summaryrefslogtreecommitdiffstats
path: root/drivers/led
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2020-10-14 12:46:27 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2020-10-14 12:46:27 +0200
commitefab7dbedba741db63c200a5f12f19f82178d05c (patch)
tree1df83130dde3c3b7a6b54c270c0c034eda67c614 /drivers/led
parentb7d1cc08cc3842697b5148d1a9d244c2c19dc834 (diff)
parent13f237e2d84c875d9f4bcbdfe513a18a269ceaee (diff)
downloadbarebox-efab7dbedba741db63c200a5f12f19f82178d05c.tar.gz
barebox-efab7dbedba741db63c200a5f12f19f82178d05c.tar.xz
Merge branch 'for-next/driver-macro' into master
Diffstat (limited to 'drivers/led')
-rw-r--r--drivers/led/led-pca955x.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/led/led-pca955x.c b/drivers/led/led-pca955x.c
index 32bf430e83..07bc26a50b 100644
--- a/drivers/led/led-pca955x.c
+++ b/drivers/led/led-pca955x.c
@@ -410,8 +410,4 @@ static struct driver_d led_pca955x_driver = {
.of_compatible = DRV_OF_COMPAT(of_pca955x_match),
};
-static int __init led_pca955x_init(void)
-{
- return i2c_driver_register(&led_pca955x_driver);
-}
-device_initcall(led_pca955x_init);
+device_i2c_driver(led_pca955x_driver);