From patchwork Tue Aug 28 04:38:03 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcos Paulo de Souza X-Patchwork-Id: 1379121 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 8B2E6DF283 for ; Tue, 28 Aug 2012 04:40:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750926Ab2H1Ekb (ORCPT ); Tue, 28 Aug 2012 00:40:31 -0400 Received: from mail-qc0-f174.google.com ([209.85.216.174]:41316 "EHLO mail-qc0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750876Ab2H1Ekb (ORCPT ); Tue, 28 Aug 2012 00:40:31 -0400 Received: by qcro28 with SMTP id o28so3110228qcr.19 for ; Mon, 27 Aug 2012 21:40:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=KLGlvJdGTpZLKsaMcPjPCl8Zvew4ccK44sodfPzgHSg=; b=PjYDpDE702owCGi258FrS3P0JBNziwrDrSYtDr8thAEYdYJKB3gks0NCeE5S3gEoQ6 ++H4ecRP7UckMP12jVPQ8gxZi5kK1mdfvco1RqIx92Z2U7ln0qZdb+ZiatFTsUjvThXt g9mvp2joEaKpbaYy7sj3fF9IM3i1MuQFD5VwI2lPr9okjdOutVQ4AMICnxGg1M/rRI2s k1vPht29mFWF4lueC00OWTZHtiP5YciGDvmica9rHqh7g0FwgyfyYCwY2sD9G9htYFij rSXcKOkKTDpm3+AtzGU99kbK44InEW7R3IUfUNiWa8xFljYKLVHhmRTvaeve3wgYQ6v6 sJWg== Received: by 10.229.135.141 with SMTP id n13mr8256641qct.105.1346128830353; Mon, 27 Aug 2012 21:40:30 -0700 (PDT) Received: from localhost.localdomain ([187.7.20.110]) by mx.google.com with ESMTPS id hq10sm14827802qab.1.2012.08.27.21.40.27 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 27 Aug 2012 21:40:29 -0700 (PDT) From: Marcos Paulo de Souza To: FlorianSchandinat@gmx.de Cc: linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, rjw@sisk.pl, Marcos Paulo de Souza Subject: [PATCH] drivrs/video/jz4740_fb.c: Use SIMPLE_DEV_PM_OPS instead of dev_pm_ops Date: Tue, 28 Aug 2012 01:38:03 -0300 Message-Id: <1346128683-21487-1-git-send-email-marcos.souza.org@gmail.com> X-Mailer: git-send-email 1.7.9.5 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org Just a cleanup, not functional changes. Signed-off-by: Marcos Paulo de Souza --- Just compile test. Please double check. drivers/video/jz4740_fb.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/video/jz4740_fb.c b/drivers/video/jz4740_fb.c index de36693..a53fb7d 100644 --- a/drivers/video/jz4740_fb.c +++ b/drivers/video/jz4740_fb.c @@ -807,12 +807,7 @@ static int jzfb_resume(struct device *dev) return 0; } -static const struct dev_pm_ops jzfb_pm_ops = { - .suspend = jzfb_suspend, - .resume = jzfb_resume, - .poweroff = jzfb_suspend, - .restore = jzfb_resume, -}; +static SIMPLE_DEV_PM_OPS(jzfb_pm_ops, jzfb_suspend, jzfb_resume); #define JZFB_PM_OPS (&jzfb_pm_ops)