diff options
author | Tony Lindgren <tony@atomide.com> | 2012-01-20 20:17:22 +0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2012-01-25 02:03:02 +0400 |
commit | 0215716083cac67ff7ea3e3efdc9943bdb462274 (patch) | |
tree | 5d3f28f6aa09717833d5f60e5f7cb148e4a9d2e1 /drivers/pinctrl/core.h | |
parent | f9d41d7cb5a3a4fe9585d47e518d779d2aef8c94 (diff) | |
download | linux-0215716083cac67ff7ea3e3efdc9943bdb462274.tar.xz |
pinctrl: free debugfs entries when unloading a pinmux driver
We were not cleaning up properly after unloading a pinmux
driver compiled as module.
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/core.h')
-rw-r--r-- | drivers/pinctrl/core.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/pinctrl/core.h b/drivers/pinctrl/core.h index 177a3310547f..cfa86da6b4b1 100644 --- a/drivers/pinctrl/core.h +++ b/drivers/pinctrl/core.h @@ -41,6 +41,9 @@ struct pinctrl_dev { struct device *dev; struct module *owner; void *driver_data; +#ifdef CONFIG_DEBUG_FS + struct dentry *device_root; +#endif #ifdef CONFIG_PINMUX struct mutex pinmux_hogs_lock; struct list_head pinmux_hogs; |