Received: by 10.213.65.68 with SMTP id h4csp644100imn; Fri, 23 Mar 2018 12:22:41 -0700 (PDT) X-Google-Smtp-Source: AG47ELuYicDznLvDDeeq5ixQhXIujqa8PS7FY18Ly7vQLs0rS947jrqnOP1o6Owmc473s8yWRw04 X-Received: by 10.99.101.193 with SMTP id z184mr22429260pgb.429.1521832961281; Fri, 23 Mar 2018 12:22:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521832961; cv=none; d=google.com; s=arc-20160816; b=SCaTlm3kE8cKYyFzkvSe4NwuKhTtBWfnuMTrscCr0iXbnuV4o0AIis3Ibn+hl5fgwN Wag2ydHlIJZKok3FXD2E4buNxMs4BoWsPTn/cxseJHR/3817crPuBEl/2cVAOlj+2+3q olVX/6dQTmE9ZHM5FV8F3a/sgiaz11aJbYVwerqj1/d4LzoCCsZdGXEU9j+k39kg4hs9 LESAUhRcpg8dWvEM/bkN0qRwksRjVjDqFcwkLsLkl/X92jxyWPx9zsb7l5e4gSe9kooR op0HEXyQWDOdkbKQRNvxvFyzLb+t5cUwIVWkoNVZz8IgopEXmC203oIhZp6jxlaavgEA RsUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=giw3VbQoCMy7ruEr/7QsFMe1NGN6ws3EVg95ZWW6FJs=; b=lq+U7rkLFsklvCavTlkgTH9tKahZcG7T/Fzgc5PaDuy0ACPGKLt8dAC4ds2bFFg9Ss IIILiSYJXAgTOlRhVncEJuwelqLIatgbp1eMBPMte3Ut1l0yKTjr3mjRYb9N6DM6Imfg vGHyvz3lzmOnHajO2ceNFyrp7THKw01H/2EYrzzDNRvLTSrp3AH7GSRwh/FNQpxdcA2u e91w2I9mJ/Ht9bmIYGxBjP8+Wml4BqGdSB/d0nn66mPdHZiXrnSGEbiWYjOUveckPbst KoFb324EvY75TKx3vE2qDBJdIm0dwm98969+fZm2e0B0ccQnbprETMaXjlV1o9wERwzM Lksw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Wu5IAVBz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w11si6604124pgt.391.2018.03.23.12.22.27; Fri, 23 Mar 2018 12:22:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Wu5IAVBz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752534AbeCWTVh (ORCPT + 99 others); Fri, 23 Mar 2018 15:21:37 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:37479 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752017AbeCWTVf (ORCPT ); Fri, 23 Mar 2018 15:21:35 -0400 Received: by mail-wm0-f65.google.com with SMTP id 139so5439726wmn.2 for ; Fri, 23 Mar 2018 12:21:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=giw3VbQoCMy7ruEr/7QsFMe1NGN6ws3EVg95ZWW6FJs=; b=Wu5IAVBzf8jD5/tNgPIjwv9yJOzvMDDR6t9W36/JqBew1XkjXLtfdaPL+eL51kPrhM hR+CId1n1Gpv0yXohyK5VqGrja2I7Hag4GyQUZwf+2DcfI/mLRWZPsk01DdxrWqigR4A OImaZmUq4mbdHUUQYnxuDLnj6AKPlwtgHCVmyW7KE1c+WEtoMQc+Iv/qqeM3+Sgjvaq8 om6DtIariVrlQg9NnlR2rqGxpZ6/HmfPCc3hf9+TrJZGnkv3qX7K3MkxBgDBiTmNFt8T tTyDrXZPSgiZUrn6uplPG/jiFMT3H2g+8iiSxXUREiXYd8qIWxUEYRprtRb5s4I1AgN7 hCYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=giw3VbQoCMy7ruEr/7QsFMe1NGN6ws3EVg95ZWW6FJs=; b=bMHXCSHpLvu70chZfM0OKpKBNLnjppk6og5V+YptyXCY6Yv/1pCow/JdRNHYxDABcQ tiOy5neIzW3T3WeXppLr06w/58F8yrm4d0cDMZAxsERZJa0eQGSsu7MqdH7B7ckoXpiD iQH0QVw58i2+LNyh4fRLgLRFxhmho0BtsGwpqyPMIVYPKQ8QAuRQVKzLRd5OECqYsuZS llqoKeyN8uUPWFk+T3GdTJerKE8n+mVqiZiz98g7Ro+5BwVimf9EaLZb8C+FQfLPHtnH ShJlEqCwn+gK/RQUe0/JElVmNkEaGT8mafsF6Len5vFfDLfhi86oLjADfQLu3D190KVp rLpQ== X-Gm-Message-State: AElRT7F1sOMzx2M2FkH8yk3QM9Q8yXezyjBw6xFoRTXFZyYYhEnWZf5s oWOPIAh7thwjUgldIkkW7yPA4zqgBqE= X-Received: by 10.80.164.182 with SMTP id w51mr8010919edb.152.1521832894212; Fri, 23 Mar 2018 12:21:34 -0700 (PDT) Received: from [192.168.1.3] (x4e34f5b4.dyn.telefonica.de. [78.52.245.180]) by smtp.gmail.com with ESMTPSA id w7sm768718edb.76.2018.03.23.12.21.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Mar 2018 12:21:33 -0700 (PDT) Subject: Re: [PATCH v4] staging: bcm2835-audio: Release resources on module_exit() To: Andy Shevchenko Cc: Greg Kroah-Hartman , Eric Anholt , Stefan Wahren , Florian Fainelli , Ray Jui , Scott Branden , bcm-kernel-feedback-list , Michael Zoran , linux-rpi-kernel@lists.infradead.org, linux-arm Mailing List , devel@driverdev.osuosl.org, Linux Kernel Mailing List References: <20180322213722.31822-1-k.marinushkin@gmail.com> From: Kirill Marinushkin Message-ID: <0524fb43-ed08-6c54-39ed-32bd96ccaca4@gmail.com> Date: Fri, 23 Mar 2018 20:22:09 +0100 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/23/18 17:23, Andy Shevchenko wrote: > On Thu, Mar 22, 2018 at 11:37 PM, Kirill Marinushkin > wrote: > > >> +static void snd_devm_release(struct device *dev) >> +{ >> + struct bcm2835_chip *chip = dev_get_drvdata(dev); >> + >> + kfree(chip); >> +} >> + device->release = snd_devm_release; > This is not devm function, so, it would be rather called > snd_bcm2835_release(). Ah, you mean "devm" in the names. Now I got it. Agree, I will rename it to "snd_bcm2835_release()" > >> static struct snd_card *snd_devm_card_new(struct device *dev) >> { >> struct snd_card *card; >> int ret; >> >> ret = snd_card_new(dev, -1, NULL, THIS_MODULE, 0, &card); >> + if (ret) >> return ERR_PTR(ret); >> >> return card; >> } > Same here. You removed anything related to devm here, so, please make > function name consistent. Good, I will rename it to "snd_bcm2835_card_new()" > After addressing above, FWIW, > > Reviewed-by: Andy Shevchenko >