i2c: mux: pca9541: Export OF device ID table as module aliases
authorJavier Martinez Canillas <javier@osg.samsung.com>
Mon, 16 Jan 2017 13:54:55 +0000 (10:54 -0300)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 9 Feb 2017 16:31:05 +0000 (17:31 +0100)
The I2C core always reports a MODALIAS of the form i2c:<foo> even if the
device was registered via OF, this means that exporting the OF device ID
table device aliases in the module is not needed. But in order to change
how the core reports modaliases to user-space, it's better to export it.

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Acked-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/muxes/i2c-mux-pca9541.c

index 4ea7e691afc75bb9d6aa7166cd02c9cde7cad9a7..77840f7845a1ba3117f66d815696b4fdce68f2b3 100644 (file)
@@ -90,6 +90,7 @@ static const struct of_device_id pca9541_of_match[] = {
        { .compatible = "nxp,pca9541" },
        {}
 };
+MODULE_DEVICE_TABLE(of, pca9541_of_match);
 #endif
 
 /*