summaryrefslogtreecommitdiffstats
path: root/drivers/reset
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/reset')
-rw-r--r--drivers/reset/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/reset/core.c b/drivers/reset/core.c
index a258277959b4..d1b6089a0ef8 100644
--- a/drivers/reset/core.c
+++ b/drivers/reset/core.c
@@ -181,7 +181,7 @@ struct reset_control *reset_control_get(struct device *dev, const char *id)
rstc = kzalloc(sizeof(*rstc), GFP_KERNEL);
if (!rstc) {
- module_put(rstc->rcdev->owner);
+ module_put(rcdev->owner);
return ERR_PTR(-ENOMEM);
}