diff options
Diffstat (limited to 'drivers/power/power_supply_sysfs.c')
-rw-r--r-- | drivers/power/power_supply_sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/power_supply_sysfs.c b/drivers/power/power_supply_sysfs.c index 82e1246eeb0a..fe2aeb11939b 100644 --- a/drivers/power/power_supply_sysfs.c +++ b/drivers/power/power_supply_sysfs.c | |||
@@ -202,7 +202,7 @@ int power_supply_uevent(struct device *dev, struct kobj_uevent_env *env) | |||
202 | 202 | ||
203 | dev_dbg(dev, "uevent\n"); | 203 | dev_dbg(dev, "uevent\n"); |
204 | 204 | ||
205 | if (!psy) { | 205 | if (!psy || !psy->dev) { |
206 | dev_dbg(dev, "No power supply yet\n"); | 206 | dev_dbg(dev, "No power supply yet\n"); |
207 | return ret; | 207 | return ret; |
208 | } | 208 | } |