From patchwork Wed Dec 12 11:39:09 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 205490 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-vc0-f187.google.com (mail-vc0-f187.google.com [209.85.220.187]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 31C032C008F for ; Wed, 12 Dec 2012 22:46:20 +1100 (EST) Received: by mail-vc0-f187.google.com with SMTP id m8sf397286vcd.4 for ; Wed, 12 Dec 2012 03:46:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=mime-version:x-beenthere:received-spf:from:to:cc:subject:date :message-id:x-mailer:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type; bh=qzE43uUZlufvyNZTpK1h+kO2ffsCHjd9eNDTAcfh+RE=; b=S60u5PheCDWKlOpl55Ed9R4wePcRTXjPth0X0jNQVVTFrwwecWtkTg395MRHUPJ8PM ynCWiQzgS8LlXHlKHCw16xOyNWV12zvT1eF1GD5Nx7g1j/Jj4QyGYOQnuBPqgIIUrqEb LuXbl9eKjpuGV+zWRN41iwh1rBX3QSq/pAiaKyX0KQRxr8scFZYlWCT9HYLwVnLtK7RU vwl1ItUhi+AfQ9jLX0BIGeHlRAZNSKKsbAV3b07eP5uIU40iSmAkzQJAuejYtQ7avNuu LFp2KH3Mjaomgt/6IHVoX1/juH+x7te0D/QVAUaqEMF8WXMnVzJVRdJmy3GGjrhWJ9IR FUIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-beenthere:received-spf:from:to:cc:subject:date :message-id:x-mailer:x-gm-message-state:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type; bh=qzE43uUZlufvyNZTpK1h+kO2ffsCHjd9eNDTAcfh+RE=; b=DLkNQUjBopheAEFyB0s015X0/ZeLSOwde/l9C+x+Ad8/t7Sb2y2HeZWqOkk4MfUGVz uNVUrb2zj04wRo7UwGMKf7upVztaaRl/o2pHlV8iVq54on0KUhEThlZI7RAI7Vzd+Zxj BRLkO2uF847C3svLcz4dgawIsqMX46IYjlXQEVNWnBLGbfK0nDVkudStAJblDUHrK68m /WdvJev3vvPpwVbu4SuMlWpzLS0EDyH5J28IicyNPUKDZnz1Z3dA1lI6W4R+/EPNqeNg KARX0aQDF/KFlHUkPdukL08vKHX+5q0vKG+Y9Sib58YQcktN2JPUvUQp6zP3sE3N0YuF tYJw== Received: by 10.50.222.132 with SMTP id qm4mr5151196igc.5.1355312776949; Wed, 12 Dec 2012 03:46:16 -0800 (PST) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.50.41.137 with SMTP id f9ls3275700igl.44.canary; Wed, 12 Dec 2012 03:46:16 -0800 (PST) Received: by 10.66.89.74 with SMTP id bm10mr380974pab.19.1355312776306; Wed, 12 Dec 2012 03:46:16 -0800 (PST) Received: by 10.66.89.74 with SMTP id bm10mr380973pab.19.1355312776297; Wed, 12 Dec 2012 03:46:16 -0800 (PST) Received: from mail-pb0-f49.google.com (mail-pb0-f49.google.com [209.85.160.49]) by gmr-mx.google.com with ESMTPS id e1si215132paz.0.2012.12.12.03.46.16 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 12 Dec 2012 03:46:16 -0800 (PST) Received-SPF: neutral (google.com: 209.85.160.49 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.160.49; Received: by mail-pb0-f49.google.com with SMTP id un15so478935pbc.36 for ; Wed, 12 Dec 2012 03:46:16 -0800 (PST) Received: by 10.66.85.103 with SMTP id g7mr1923207paz.45.1355312775949; Wed, 12 Dec 2012 03:46:15 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id o6sm15688980paw.37.2012.12.12.03.46.12 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 12 Dec 2012 03:46:15 -0800 (PST) From: Sachin Kamat To: rtc-linux@googlegroups.com Cc: a.zummo@towertech.it, akpm@linux-foundation.org, sachin.kamat@linaro.org, patches@linaro.org Subject: [rtc-linux] [PATCH 1/1] drivers/rtc/rtc-s3c: Use of_match_ptr() macro Date: Wed, 12 Dec 2012 17:09:09 +0530 Message-Id: <1355312349-21064-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQmpZehSSGIyKNFYRHwwDJ02PmwWOybag7VopBVDsh0kmO4C2DjPQRkyOWYE6+uTvyFcp3dH X-Original-Sender: sachin.kamat@linaro.org X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 209.85.160.49 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: X-Google-Group-Id: 712029733259 List-Post: , List-Help: , List-Archive: Sender: rtc-linux@googlegroups.com List-Subscribe: , List-Unsubscribe: , This eliminates having an #ifdef returning NULL for the case when OF is disabled. Signed-off-by: Sachin Kamat --- drivers/rtc/rtc-s3c.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/drivers/rtc/rtc-s3c.c b/drivers/rtc/rtc-s3c.c index e33df1b..4bd9414 100644 --- a/drivers/rtc/rtc-s3c.c +++ b/drivers/rtc/rtc-s3c.c @@ -663,8 +663,6 @@ static const struct of_device_id s3c_rtc_dt_match[] = { {}, }; MODULE_DEVICE_TABLE(of, s3c_rtc_dt_match); -#else -#define s3c_rtc_dt_match NULL #endif static struct platform_device_id s3c_rtc_driver_ids[] = { @@ -695,7 +693,7 @@ static struct platform_driver s3c_rtc_driver = { .driver = { .name = "s3c-rtc", .owner = THIS_MODULE, - .of_match_table = s3c_rtc_dt_match, + .of_match_table = of_match_ptr(s3c_rtc_dt_match), }, };