i2c: ibm-iic: Fix module autoload for OF platform driver
authorLuis de Bethencourt <luis@debethencourt.com>
Tue, 20 Oct 2015 14:16:27 +0000 (15:16 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 20 Oct 2015 16:14:01 +0000 (18:14 +0200)
This platform driver has a OF device ID table but the OF module
alias information is not created so module autoloading won't work.

Signed-off-by: Luis de Bethencourt <luisbg@osg.samsung.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-ibm_iic.c

index 722f839cfa3c8287fe21fe347f1625389e60afb4..ab492301581a0d717566c7ff473c4d7c3adacca3 100644 (file)
@@ -798,6 +798,7 @@ static const struct of_device_id ibm_iic_match[] = {
        { .compatible = "ibm,iic", },
        {}
 };
+MODULE_DEVICE_TABLE(of, ibm_iic_match);
 
 static struct platform_driver ibm_iic_driver = {
        .driver = {