From patchwork Tue Jul 10 07:02:18 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 9918 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 2D90023E3D for ; Tue, 10 Jul 2012 07:03:06 +0000 (UTC) Received: from mail-yx0-f180.google.com (mail-yx0-f180.google.com [209.85.213.180]) by fiordland.canonical.com (Postfix) with ESMTP id E7131A1817D for ; Tue, 10 Jul 2012 07:03:05 +0000 (UTC) Received: by yenq6 with SMTP id q6so11701919yen.11 for ; Tue, 10 Jul 2012 00:03:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=YyMHiE3QhfN68n49+wtEXspQcZxES3rOvcYr+7e3DlE=; b=Q+oWStGIe4LcSCJNJ33ykrQ6dOz2EJFtS7+CfKBqiJxZBTDfXoH7o3Ci6gpayUPO2I 5wFIZgue3NRRLS8Jpu23f0c89pr4KABdlN7wXLQK+z/QwZXo7EQ/jWJpbxBuWUCrp6s/ pq1TiZ6TxcbbHqgn9NXcku/hfn8+Uai1fLJKPqsAcK+EXFl7JgWavF/DvAr/IUigI3IR +l/FVdoeaT7wCx9sliHLZxR4b8F1VOOxKzYj9rnCzDjQkXeHkwdkkw9Y5fxH4mNhEdtq 2b6OHnaGm6RYSj7SL1O1SLITjcs3PY3XaX69+hqeOpN9j0e4aAKJavuGwo69rKzIDuik 6K7A== Received: by 10.50.160.198 with SMTP id xm6mr10616300igb.0.1341903785155; Tue, 10 Jul 2012 00:03:05 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.24.148 with SMTP id v20csp45749ibb; Tue, 10 Jul 2012 00:03:04 -0700 (PDT) Received: by 10.68.226.226 with SMTP id rv2mr66383475pbc.101.1341903761540; Tue, 10 Jul 2012 00:02:41 -0700 (PDT) Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by mx.google.com with ESMTPS id gg3si60213598pbc.319.2012.07.10.00.02.41 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 10 Jul 2012 00:02:41 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.160.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Received: by pbbrr4 with SMTP id rr4so24377519pbb.37 for ; Tue, 10 Jul 2012 00:02:41 -0700 (PDT) Received: by 10.68.202.99 with SMTP id kh3mr50461950pbc.157.1341903761254; Tue, 10 Jul 2012 00:02:41 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id ny4sm29294707pbb.57.2012.07.10.00.02.37 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 10 Jul 2012 00:02:40 -0700 (PDT) From: Sachin Kamat To: linux-pm@vger.kernel.org Cc: rjw@sisk.pl, gregkh@linuxfoundation.org, sachin.kamat@linaro.org, pavel@ucw.cz, patches@linaro.org Subject: [PATCH 2/2] PM/Domains: Replace plain integer with NULL pointer in domain.c file Date: Tue, 10 Jul 2012 12:32:18 +0530 Message-Id: <1341903738-1791-2-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1341903738-1791-1-git-send-email-sachin.kamat@linaro.org> References: <1341903738-1791-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQlgrkjqtGpfot3/hUG5ibVBir8WFgnVRebb04fDKkWTxWhGqXXvKCXJsbJouO9CR088SMoG Fixes the following sparse warning: drivers/base/power/domain.c:1679:55: warning: Using plain integer as NULL pointer Signed-off-by: Sachin Kamat --- drivers/base/power/domain.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c index 4f8e0d2..8d67417 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 };