Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752687AbaB0LlK (ORCPT ); Thu, 27 Feb 2014 06:41:10 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:18484 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751500AbaB0LlF (ORCPT ); Thu, 27 Feb 2014 06:41:05 -0500 X-AuditID: cbfee68e-b7f566d000002344-05-530f24508ec2 From: Jingoo Han To: "'Andrew Morton'" Cc: linux-kernel@vger.kernel.org, "'Alessandro Zummo'" , rtc-linux@googlegroups.com, "'Jingoo Han'" , "'Laxman Dewangan'" References: <000c01cf33b0$b1b3e050$151ba0f0$%han@samsung.com> In-reply-to: <000c01cf33b0$b1b3e050$151ba0f0$%han@samsung.com> Subject: [PATCH 2/2] rtc: palmas: Use SIMPLE_DEV_PM_OPS macro Date: Thu, 27 Feb 2014 20:41:04 +0900 Message-id: <000d01cf33b0$cbe88e30$63b9aa90$%han@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac8zsLGZwyDXiYdLTDm9mZzbm6I0DAAAAfTQ Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrIIsWRmVeSWpSXmKPExsVy+t8zY90AFf5ggxOHdS2WXLzKbjFn/Ro2 i8sLL7FaLN23msXi8q45bBb7OzsYHdg89kw8yeZxYsZvFo/e5ndsHn1bVjF6TJ/3k8nj8ya5 ALYoLpuU1JzMstQifbsErow9tzYwFbSyVVxqbWdqYOxm7WLk5JAQMJHomLeAHcIWk7hwbz1b FyMXh5DAMkaJozPvs8AU9U+ZwA6RmM4o8enwdlYI5zejxIzbPWwgVWwCahJfvhwGquLgEBHQ l2hr0QCpYRbYySixtms2M0iNkICtxM6JbxhBbE4BO4kvsyYzgdQLA8W3dmiAhFkEVCXaVs4H K+EFCi992cMCYQtK/Jh8D8xmFtCSWL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wanhmfQOxlUNFocYBTgYlXh4f+jyBQuxJpYVV+YeYpTgYFYS4V3PxB8sxJuSWFmV WpQfX1Sak1p8iDEZ6NGJzFKiyfnAtJVXEm9obGJmZGlkZmFkYm5OmrCSOO/BVutAIYH0xJLU 7NTUgtQimC1MHJxSDYx6G45a9N69UZU7/21azQ/uvQ4sn5fLPS26vib3cvmyo7YH/9mVGaw1 P1y/aPmZXdauR7lVjBzm3HkintFb6PbN54DHU7Pnmwo9YsKXpXk+j1s7b6O+r+E67b5Xj9O9 F2tyTFtyesbyqwKR62bt6t9yuDZhbS+zUHbzqoL7Bw+/ZGys55IPneiuxFKckWioxVxUnAgA P/PmuVEDAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use SIMPLE_DEV_PM_OPS macro in order to make the code simpler. Signed-off-by: Jingoo Han --- drivers/rtc/rtc-palmas.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/rtc/rtc-palmas.c b/drivers/rtc/rtc-palmas.c index fffb7d3..c360d62 100644 --- a/drivers/rtc/rtc-palmas.c +++ b/drivers/rtc/rtc-palmas.c @@ -348,9 +348,8 @@ static int palmas_rtc_resume(struct device *dev) } #endif -static const struct dev_pm_ops palmas_rtc_pm_ops = { - SET_SYSTEM_SLEEP_PM_OPS(palmas_rtc_suspend, palmas_rtc_resume) -}; +static SIMPLE_DEV_PM_OPS(palmas_rtc_pm_ops, palmas_rtc_suspend, + palmas_rtc_resume); #ifdef CONFIG_OF static struct of_device_id of_palmas_rtc_match[] = { -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/