From patchwork Sat Mar 26 07:00:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Ricard X-Patchwork-Id: 8674231 Return-Path: X-Original-To: patchwork-tpmdd-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C72BF9F44D for ; Sat, 26 Mar 2016 07:00:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EE2D1202B8 for ; Sat, 26 Mar 2016 07:00:37 +0000 (UTC) Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D06BF20268 for ; Sat, 26 Mar 2016 07:00:36 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=sfs-ml-1.v29.ch3.sourceforge.com) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1ajiD4-0003Qf-Bu; Sat, 26 Mar 2016 07:00:34 +0000 Received: from sog-mx-3.v43.ch3.sourceforge.com ([172.29.43.193] helo=mx.sourceforge.net) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1ajiD2-0003QC-LQ for tpmdd-devel@lists.sourceforge.net; Sat, 26 Mar 2016 07:00:32 +0000 Received-SPF: pass (sog-mx-3.v43.ch3.sourceforge.com: domain of gmail.com designates 74.125.82.67 as permitted sender) client-ip=74.125.82.67; envelope-from=christophe.ricard@gmail.com; helo=mail-wm0-f67.google.com; Received: from mail-wm0-f67.google.com ([74.125.82.67]) by sog-mx-3.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1ajiD1-0001iw-TY for tpmdd-devel@lists.sourceforge.net; Sat, 26 Mar 2016 07:00:32 +0000 Received: by mail-wm0-f67.google.com with SMTP id l68so8190829wml.3 for ; Sat, 26 Mar 2016 00:00:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ZatJODzP6rfCJ0Q4CwduPdu5yP1FdsyGD3oL1vbgfAA=; b=WGriWecPTMFBeprxeZpbEO9jpMBF2tzpZEps2G2hdwspR51ddGc6Ip2FpulbW+64b8 lpG9izJCbxz9yTGCrwW179kkdKYKmn9NMQZJPsovFubD/ZBnfzugjcVrIuOPY74tn1+J Zy3ka7c3cMXDuUGKCPq2OGTRLE88no579ylLnU4bKrhSSZTgJGe8PD8DfVri9Ar7ufAA wAopf/CrquWuYntNjSeWEC17hVGx2bol+vDMIdC8clyVuk5a1KQ/TihxeodXGkSYGoSn vL+QU6L08IcJ6RLwV9PQdB/YXu3v+Kkwx2MQ3na8a78d+3iSuYvirQmg45r6FZN/kqkP iuoA== X-Gm-Message-State: AD7BkJLZHQsOVnh8VLCOAyA0yTNpcZnpirRRr2gymC9hBpqCVFX+B7ebswFA534y0Lk0TQ== X-Received: by 10.28.187.212 with SMTP id l203mr488288wmf.73.1458975625965; Sat, 26 Mar 2016 00:00:25 -0700 (PDT) Received: from localhost.localdomain (ax113-6-78-236-204-66.fbx.proxad.net. [78.236.204.66]) by smtp.gmail.com with ESMTPSA id lz5sm14978102wjb.5.2016.03.26.00.00.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 26 Mar 2016 00:00:25 -0700 (PDT) From: Christophe Ricard X-Google-Original-From: Christophe Ricard To: jarkko.sakkinen@linux.intel.com Date: Sat, 26 Mar 2016 08:00:12 +0100 Message-Id: <1458975615-8095-5-git-send-email-christophe-h.ricard@st.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1458975615-8095-1-git-send-email-christophe-h.ricard@st.com> References: <1458975615-8095-1-git-send-email-christophe-h.ricard@st.com> X-Spam-Score: -1.6 (-) X-Headers-End: 1ajiD1-0001iw-TY Cc: jean-luc.blanc@st.com, ashley@ashleylai.com, tpmdd-devel@lists.sourceforge.net, christophe-h.ricard@st.com, benoit.houyere@st.com Subject: [tpmdd-devel] [PATCH v2 4/7] tpm/tpm_i2c_atmel: Few code style fixes X-BeenThere: tpmdd-devel@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: Tpm Device Driver maintainance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: tpmdd-devel-bounces@lists.sourceforge.net X-Spam-Status: No, score=-7.9 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,HK_RANDOM_ENVFROM,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Few code style fixes. Signed-off-by: Christophe Ricard --- drivers/char/tpm/tpm_i2c_atmel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/char/tpm/tpm_i2c_atmel.c b/drivers/char/tpm/tpm_i2c_atmel.c index 5426c9d..d357065 100644 --- a/drivers/char/tpm/tpm_i2c_atmel.c +++ b/drivers/char/tpm/tpm_i2c_atmel.c @@ -125,8 +125,7 @@ static u8 i2c_atmel_read_status(struct tpm_chip *chip) /* Once the TPM has completed the command the command remains readable * until another command is issued. */ rc = i2c_master_recv(client, priv->buffer, sizeof(priv->buffer)); - dev_dbg(&chip->dev, - "%s: sts=%d", __func__, rc); + dev_dbg(&chip->dev, "%s: sts=%d", __func__, rc); if (rc <= 0) return 0; @@ -192,6 +191,7 @@ static int i2c_atmel_probe(struct i2c_client *client, static int i2c_atmel_remove(struct i2c_client *client) { struct tpm_chip *chip = i2c_get_clientdata(client); + tpm_chip_unregister(chip); return 0; }