From patchwork Wed Apr 23 14:58:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 28909 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f69.google.com (mail-oa0-f69.google.com [209.85.219.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 77AB1203AC for ; Wed, 23 Apr 2014 15:21:47 +0000 (UTC) Received: by mail-oa0-f69.google.com with SMTP id i4sf6295813oah.8 for ; Wed, 23 Apr 2014 08:21:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type; bh=SOcCDe5/selb/PhtX8AQnNJQP5Ma6PKcVBlR6VKt374=; b=Wu/ZjmE2826Hau7YYDR1zuIbuFUJ1qn25m+vC9gghKAR3MAEIc5A4RkrdQAT3nR4Tp dbxNcBh/efq7HfpUr83EtXJXnaWZ+FMYKrQqmem5wdyi7Zvt4R8C5nPE7c9ujHDPIBIy gnM9nCEKhTtxw2RY/SzOd8MYDuaifV0joS5kjudpGzZ9lUYeM6tN+kt+gUS4i/prZ/ZD H3oi1fm+lQ/mp3zcA3WY24XRl5x7/J23n3U31qtUAyGNCRtzpoVdJPnInNE8D1T4CaND BTupVjq9KElXbMnAceCqfnjSOgPhMkQWU8eg00fcDExE4SBtcIlQhbqQwSFogCLra47V Yx3A== X-Gm-Message-State: ALoCoQnX80bjgli6HYWIPULaRN590cKTYQg0qc01W1O9NZm6hzdptjeuZ0MjKBZkkUnYc3QxI9cr X-Received: by 10.50.254.1 with SMTP id ae1mr1615819igd.6.1398266506879; Wed, 23 Apr 2014 08:21:46 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.36.33 with SMTP id o30ls629460qgo.23.gmail; Wed, 23 Apr 2014 08:21:46 -0700 (PDT) X-Received: by 10.52.160.98 with SMTP id xj2mr376040vdb.80.1398266506729; Wed, 23 Apr 2014 08:21:46 -0700 (PDT) Received: from mail-vc0-f178.google.com (mail-vc0-f178.google.com [209.85.220.178]) by mx.google.com with ESMTPS id vg8si221669veb.147.2014.04.23.08.21.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 23 Apr 2014 08:21:46 -0700 (PDT) Received-SPF: none (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) client-ip=209.85.220.178; Received: by mail-vc0-f178.google.com with SMTP id hu19so1307831vcb.23 for ; Wed, 23 Apr 2014 08:21:46 -0700 (PDT) X-Received: by 10.52.130.225 with SMTP id oh1mr36220314vdb.8.1398266506644; Wed, 23 Apr 2014 08:21:46 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp112216vcb; Wed, 23 Apr 2014 08:21:46 -0700 (PDT) X-Received: by 10.68.245.162 with SMTP id xp2mr56286228pbc.69.1398266505808; Wed, 23 Apr 2014 08:21:45 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id hp1si795125pad.385.2014.04.23.08.21.45; Wed, 23 Apr 2014 08:21:45 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757762AbaDWPVg (ORCPT + 27 others); Wed, 23 Apr 2014 11:21:36 -0400 Received: from devils.ext.ti.com ([198.47.26.153]:60573 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757005AbaDWPBL (ORCPT ); Wed, 23 Apr 2014 11:01:11 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id s3NF14u6030743; Wed, 23 Apr 2014 10:01:04 -0500 Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id s3NF14QA021712; Wed, 23 Apr 2014 10:01:04 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.3.174.1; Wed, 23 Apr 2014 10:01:04 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id s3NF1305017425; Wed, 23 Apr 2014 10:01:04 -0500 From: Felipe Balbi To: Greg KH CC: , , , , , Linux Kernel Mailing List , , , , Linux OMAP Mailing List , Tony Lindgren , Felipe Balbi Subject: [PATCH 05/13] tty: serial: add missing braces Date: Wed, 23 Apr 2014 09:58:29 -0500 Message-ID: <1398265117-11793-5-git-send-email-balbi@ti.com> X-Mailer: git-send-email 1.9.2.459.g68773ac In-Reply-To: <1398265117-11793-1-git-send-email-balbi@ti.com> References: <1398265117-11793-1-git-send-email-balbi@ti.com> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: balbi@ti.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , per CodingStyle we should have those braces, no functional changes. Signed-off-by: Felipe Balbi --- drivers/tty/serial/omap-serial.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/tty/serial/omap-serial.c b/drivers/tty/serial/omap-serial.c index 837f6c1..f456f46 100644 --- a/drivers/tty/serial/omap-serial.c +++ b/drivers/tty/serial/omap-serial.c @@ -1694,8 +1694,10 @@ static int serial_omap_probe(struct platform_device *pdev) omap_up_info->DTR_present) { up->DTR_gpio = omap_up_info->DTR_gpio; up->DTR_inverted = omap_up_info->DTR_inverted; - } else + } else { up->DTR_gpio = -EINVAL; + } + up->DTR_active = 0; up->dev = &pdev->dev; @@ -1757,6 +1759,7 @@ static int serial_omap_probe(struct platform_device *pdev) platform_set_drvdata(pdev, up); if (omap_up_info->autosuspend_timeout == 0) omap_up_info->autosuspend_timeout = -1; + device_init_wakeup(up->dev, true); pm_runtime_use_autosuspend(&pdev->dev); pm_runtime_set_autosuspend_delay(&pdev->dev,