From patchwork Fri Jul 24 03:17:28 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 6857101 Return-Path: X-Original-To: patchwork-alsa-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 AC41D9FD76 for ; Fri, 24 Jul 2015 03:17:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E4ACA204EC for ; Fri, 24 Jul 2015 03:17:55 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 97F96205DE for ; Fri, 24 Jul 2015 03:17:53 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 0BB84265A45; Fri, 24 Jul 2015 05:17:52 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id EBE9C260527; Fri, 24 Jul 2015 05:17:44 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id E4DC9260533; Fri, 24 Jul 2015 05:17:42 +0200 (CEST) Received: from mail-pd0-f175.google.com (mail-pd0-f175.google.com [209.85.192.175]) by alsa0.perex.cz (Postfix) with ESMTP id 96732260522 for ; Fri, 24 Jul 2015 05:17:35 +0200 (CEST) Received: by pdjr16 with SMTP id r16so6335490pdj.3 for ; Thu, 23 Jul 2015 20:17:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:subject:from:to:cc:date:content-type :mime-version:content-transfer-encoding; bh=PNnc0H5SEmo9CqoWEXZ5bxwCxEJkqFdSZ9bD6QjU0pU=; b=GvoF79CA9VqmyD7+Y2JjfD6renj4UsrJuIUVNAfSmfqMsuCL6jIrkW49yrZnDoJ4aV WhjnpbiobnnKLIJKekk+qFYe+vBMQu4d3X0BQsWEqyolNf5j8Lfv5n07yLVb8rFu+LHJ VNGs+XcVB25tPqIUPo9I0RrIWtdJ02fNTC0GxFgD1NLceZngsfOm+rbBKmqFWZ0hERly TYCk92LgAuZSZsglsdEnNj162QLrgrR7M9r3KR+sws75ea9XBSEfC3YkgIFgaKq56J6m v863sAm4PZu/vJLxFbD/8JudWuMl3Ls12cvtiHr7lS9UVFIq4DbIMvZwxIEUtVAcUHqU gSuA== X-Gm-Message-State: ALoCoQlcoTEFLAQ1nL3TOwA7apyFsVbcpNGorAmvqsFfyllicw4jdeQz1ycain9BK+8a6AP8CXns X-Received: by 10.70.8.33 with SMTP id o1mr25833773pda.88.1437707853549; Thu, 23 Jul 2015 20:17:33 -0700 (PDT) Received: from phoenix.local ([163.26.71.6]) by smtp.gmail.com with ESMTPSA id fu2sm11454642pdb.32.2015.07.23.20.17.31 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Jul 2015 20:17:32 -0700 (PDT) Message-ID: <1437707848.12634.2.camel@ingics.com> From: Axel Lin To: Mark Brown Date: Fri, 24 Jul 2015 11:17:28 +0800 X-Mailer: Evolution 3.12.10-0ubuntu1~14.10.1 Mime-Version: 1.0 Cc: alsa-devel@alsa-project.org, Liam Girdwood , Rajeev Kumar Subject: [alsa-devel] [PATCH] ASoC: sta529: Remove redundant I2C_FUNC_SMBUS_BYTE_DATA functionality check X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP This checking is done by regmap_get_i2c_bus() which is called in devm_regmap_init_i2c(). Signed-off-by: Axel Lin --- sound/soc/codecs/sta529.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sound/soc/codecs/sta529.c b/sound/soc/codecs/sta529.c index 3430f44..2cdaca9 100644 --- a/sound/soc/codecs/sta529.c +++ b/sound/soc/codecs/sta529.c @@ -339,9 +339,6 @@ static int sta529_i2c_probe(struct i2c_client *i2c, struct sta529 *sta529; int ret; - if (!i2c_check_functionality(i2c->adapter, I2C_FUNC_SMBUS_BYTE_DATA)) - return -EINVAL; - sta529 = devm_kzalloc(&i2c->dev, sizeof(struct sta529), GFP_KERNEL); if (!sta529) return -ENOMEM;