summaryrefslogtreecommitdiffstats
path: root/drivers/base
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2012-07-11 12:25:49 +0200
committerRafael J. Wysocki <rjw@sisk.pl>2012-07-11 12:25:49 +0200
commitdb79e53dd5957321ca78efe6c0cda578034e381b (patch)
tree473719d58cb684ed9776b35888427c4c82f204f5 /drivers/base
parentPM / Domains: Add missing static storage class specifier in domain.c file (diff)
downloadlinux-db79e53dd5957321ca78efe6c0cda578034e381b.tar.xz
linux-db79e53dd5957321ca78efe6c0cda578034e381b.zip
PM / Domains: Replace plain integer with NULL pointer in domain.c file
Fixes the following sparse warning: drivers/base/power/domain.c:1679:55: warning: Using plain integer as NULL pointer Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/power/domain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c
index 4f8e0d2e7780..8d6741780b0f 100644
--- a/drivers/base/power/domain.c
+++ b/drivers/base/power/domain.c
@@ -1676,7 +1676,7 @@ int __pm_genpd_remove_callbacks(struct device *dev, bool clear_td)
if (dev->power.subsys_data->domain_data) {
gpd_data = to_gpd_data(dev->power.subsys_data->domain_data);
- gpd_data->ops = (struct gpd_dev_ops){ 0 };
+ gpd_data->ops = (struct gpd_dev_ops){ NULL };
if (clear_td)
gpd_data->td = (struct gpd_timing_data){ 0 };