From patchwork Fri Mar 25 21:25:57 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Ricard X-Patchwork-Id: 8673101 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 469329F36E for ; Fri, 25 Mar 2016 21:26:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 818492035B for ; Fri, 25 Mar 2016 21:26:19 +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 922E020357 for ; Fri, 25 Mar 2016 21:26:18 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=sfs-ml-2.v29.ch3.sourceforge.com) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1ajZFJ-00084X-D5; Fri, 25 Mar 2016 21:26:17 +0000 Received: from sog-mx-4.v43.ch3.sourceforge.com ([172.29.43.194] helo=mx.sourceforge.net) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1ajZFH-00084K-Tz for tpmdd-devel@lists.sourceforge.net; Fri, 25 Mar 2016 21:26:15 +0000 Received-SPF: pass (sog-mx-4.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-4.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1ajZFH-0008Ks-4W for tpmdd-devel@lists.sourceforge.net; Fri, 25 Mar 2016 21:26:15 +0000 Received: by mail-wm0-f67.google.com with SMTP id 139so457071wmn.2 for ; Fri, 25 Mar 2016 14:26:15 -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=f5+dP48+B/9V549GfiSJqPq+ip+TeQpau+CfhDsUiuFTrtp2ZvjxZaLIfrYoH/PXPQ dC6R2LxXC26v7cEBJAmCn+jGFAMuYFV8O97D4M9S59K+FzvePPiuMJp03MFhrH39qoQi H8XWxY5hp4n9O1OcsHHmEYOsWpt1x6QU0I86yl9m20Iiz3Hr5yHem2B/1QcpiYLOYmPe xbK9BZORItJ17+FoPEOTNfLUU58cir4Q4bYp+P7Lq7rkUfFkek3JJmVL3wcS3Esww9FK gM6PHs0APCneni+2KyoOfzUffk5z5u3+WSX3piwl0qtLAFEP2W+WODEiYgGHP9m46HI8 yfkA== X-Gm-Message-State: AD7BkJIs3Co693v7dO8Xzxy4fSrFkcyHvCJ/aNvOazXCNdEmlR5VuEMYLJ2MSFRpotllrg== X-Received: by 10.194.105.42 with SMTP id gj10mr17321976wjb.49.1458941169162; Fri, 25 Mar 2016 14:26:09 -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 jf6sm13562740wjb.2.2016.03.25.14.26.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 25 Mar 2016 14:26:08 -0700 (PDT) From: Christophe Ricard X-Google-Original-From: Christophe Ricard To: jarkko.sakkinen@linux.intel.com Date: Fri, 25 Mar 2016 22:25:57 +0100 Message-Id: <1458941160-4437-4-git-send-email-christophe-h.ricard@st.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1458941160-4437-1-git-send-email-christophe-h.ricard@st.com> References: <1458941160-4437-1-git-send-email-christophe-h.ricard@st.com> X-Spam-Score: -1.6 (-) X-Headers-End: 1ajZFH-0008Ks-4W 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 3/6] 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; }