Message ID | 20200218094234.23896-7-brgl@bgdev.pl |
---|---|
State | New |
Headers | show
Return-Path: <SRS0=VlQh=4G=vger.kernel.org=linux-gpio-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 65155C34035 for <linux-gpio@archiver.kernel.org>; Tue, 18 Feb 2020 09:43:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3D15924125 for <linux-gpio@archiver.kernel.org>; Tue, 18 Feb 2020 09:43:20 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=bgdev-pl.20150623.gappssmtp.com header.i=@bgdev-pl.20150623.gappssmtp.com header.b="TzKXLeGu" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726327AbgBRJnT (ORCPT <rfc822; linux-gpio@archiver.kernel.org>); Tue, 18 Feb 2020 04:43:19 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:36824 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726680AbgBRJnE (ORCPT <rfc822; linux-gpio@vger.kernel.org>); Tue, 18 Feb 2020 04:43:04 -0500 Received: by mail-wr1-f67.google.com with SMTP id z3so23099608wru.3 for <linux-gpio@vger.kernel.org>; Tue, 18 Feb 2020 01:43:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=4MJmrjeXUpfCiiOVSBqadBTktKzyE5G5Pyo6uC9T7RU=; b=TzKXLeGu7pUlbkJo/BBjLI/htilSMruo+BGbf2KDoYmGc2caA0R9BhtCS0AjsGBbL9 7HFh0IGlGw4FRWn6UL+PQHGTp/HPi+TlJALCD9LEa9HQYmKkDAtApUCk5GjvKVWqI1ku 5VNgNDl3FwpEhGce2/wrDilo5ZilFtQa5kwxtgAq8SsSbVY3wujJLi2C4WgS3Jkv1ogr P6Rc0lebaUROIFEjnkLeKSsBCJ1m091XNtAWGI5TCnr7XTWZNHaBY1C8OntkNFZBBHFs yI7n39OQHiK5r4oGJK486YNkIx80zhm/FkRQMT2nfW2AperE0TjHGA4hheWndPF8D4Tr D4gQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=4MJmrjeXUpfCiiOVSBqadBTktKzyE5G5Pyo6uC9T7RU=; b=PIecmhZhWUI72tpC8jtGpTIpk36pbiw6fS8g98OwZRi1fJCPvj0Biff5b5FNb4D0uh DvGSbjAKk3qik3pMHZAJSZMW60l8uvu50b0bFg+JrPfT73dzhr3MgD0mTyT1bTMnyyUF U6ZmnVcStSfnRoSJuIzLzHZdtBbmpVdSOO+qGXPxT8dwl8/MUCnPbKPp9CjQjPEpyeSb 8/qsTIgtFEui14ulbzIfYM8g7NdE1SmizdXbKGQMEH5HELtFz65Aa2v8sPg9T908vvFT WUydQIKBwv1IUlzRZl6XMEOyXZkS4DzIhg7EyYdsYLl2NkGMaa4GgkDJFE0lO620kXwL pzQQ== X-Gm-Message-State: APjAAAXj4y3efamZXNF24WlBZ0wml0E2uu7E/AAfciYLvtiMGCBG3r0B 9egqi9E3Nz0kV16lflSY3dg01Q== X-Google-Smtp-Source: APXvYqxJxka8qW+23GIFUP2hwrsAgK1suuyCEm3x4wMXUCnUkHAttDdt6PVQ/NuJFexYVJ8g1lMy9Q== X-Received: by 2002:a05:6000:367:: with SMTP id f7mr27386377wrf.174.1582018983376; Tue, 18 Feb 2020 01:43:03 -0800 (PST) Received: from localhost.localdomain (lfbn-nic-1-188-94.w2-15.abo.wanadoo.fr. [2.15.37.94]) by smtp.gmail.com with ESMTPSA id s23sm5351095wra.15.2020.02.18.01.43.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Feb 2020 01:43:02 -0800 (PST) From: Bartosz Golaszewski <brgl@bgdev.pl> To: Linus Walleij <linus.walleij@linaro.org>, Srinivas Kandagatla <srinivas.kandagatla@linaro.org>, Khouloud Touil <ktouil@baylibre.com>, Geert Uytterhoeven <geert@linux-m68k.org> Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski <bgolaszewski@baylibre.com> Subject: [PATCH v2 6/7] nvmem: remove a stray newline in nvmem_register() Date: Tue, 18 Feb 2020 10:42:33 +0100 Message-Id: <20200218094234.23896-7-brgl@bgdev.pl> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200218094234.23896-1-brgl@bgdev.pl> References: <20200218094234.23896-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: <linux-gpio.vger.kernel.org> X-Mailing-List: linux-gpio@vger.kernel.org |
Series |
nvmem/gpio: fix resource management
|
expand
|
diff --git a/drivers/nvmem/core.c b/drivers/nvmem/core.c index e47152e9db34..5e7d46eccaf6 100644 --- a/drivers/nvmem/core.c +++ b/drivers/nvmem/core.c @@ -354,7 +354,6 @@ struct nvmem_device *nvmem_register(const struct nvmem_config *config) if (IS_ERR(nvmem->wp_gpio)) goto err_ida_remove; - kref_init(&nvmem->refcnt); INIT_LIST_HEAD(&nvmem->cells);