]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
i2c: mux: demux-pinctrl: disable PM user interface
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Mon, 30 Apr 2018 12:08:42 +0000 (14:08 +0200)
committerPeter Rosin <peda@axentia.se>
Sat, 19 May 2018 21:54:36 +0000 (23:54 +0200)
The demux device is only a logical device with no children. So, no
RuntimePM is needed, let's disable the sysfs interface for it.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Peter Rosin <peda@axentia.se>
drivers/i2c/muxes/i2c-demux-pinctrl.c

index 33ce032cb70112e9a3304f789198fbb75602a47c..428de4c97fb2848c2bed71775a4f846d84f048b4 100644 (file)
@@ -18,6 +18,7 @@
 #include <linux/of.h>
 #include <linux/pinctrl/consumer.h>
 #include <linux/platform_device.h>
+#include <linux/pm_runtime.h>
 #include <linux/slab.h>
 #include <linux/sysfs.h>
 
@@ -254,6 +255,8 @@ static int i2c_demux_pinctrl_probe(struct platform_device *pdev)
 
        platform_set_drvdata(pdev, priv);
 
+       pm_runtime_no_callbacks(&pdev->dev);
+
        /* switch to first parent as active master */
        i2c_demux_activate_master(priv, 0);