Received: by 10.213.65.68 with SMTP id h4csp516548imn; Fri, 23 Mar 2018 09:25:13 -0700 (PDT) X-Google-Smtp-Source: AG47ELsdf6+knJVgjVTWfq6MJmzEOnGWuAOd5loknOE0R9t7MDUDldac1GA8hzCLiZx5aVoeXixR X-Received: by 10.99.149.86 with SMTP id t22mr7830618pgn.144.1521822313334; Fri, 23 Mar 2018 09:25:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521822313; cv=none; d=google.com; s=arc-20160816; b=ZHQ0RmvLIksqEqSCPuvbAL9SoClqIG5tPjxNIw2NojOveOaFh+ALlrMumEM4ve4+Dw QUZaRUoIg6o8VGHXxzwxYkcuwtj85TZUZI7J7/dc32ANtwWETs5boc+56G9Aa3kSw/9X SLfTrPPEz8Gw/Sew26xlJoHZHlNoy51a95p7ZKqC7irgVw/uyvESUQqMEniuE2KcvHg2 TMMNmbEY5RaJc/kIFZ41AnhLuOT8dQ67B5gKNInKi2jJofSPm10brWEK/Ys29IQLOmIT CF5sszFN/Exvs8V/cOB0M7nByyyRZqfYhst2JeiGXpi27nf2U4bsaG87jnW1kHNAb/xF ZxHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=h6SALTES/ItH73SqzKPmu7E3s1rZGjbb8O+ZhavHNKQ=; b=p0Bymgf1UpA8SmyrDUll1sBDK3tz0CNbtaZGuW82sm4RmD5+cDx8x64iE2xIihe5Gc n0JTP0jsPysVA4srNgOCYGyqQmZKp3PxY0HDt6eRI34dFXLuINDCOZfK2/kGI478iHcj fDiixyO2eb9lK4h5FJruHJQ4uB/u9HGWJA63ZLUKS1lQRlyYxlvv2FYAM1qkXlLZePD6 ic0BO/DO66SY/2NNaZcPft6V0zoCtSZeyZzaWA4uF+8NYf02I55yh7Dudgqyie8ApFt+ t1BXTi/NdOfbr+L+hv5tpjEfNiOQ54t3tSjhZGfADvxM+wyrvneSBe0yOm25e0NRnpj+ 4sjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oinqVget; 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 y16si6261102pge.500.2018.03.23.09.24.56; Fri, 23 Mar 2018 09:25:13 -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=oinqVget; 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 S1751909AbeCWQX4 (ORCPT + 99 others); Fri, 23 Mar 2018 12:23:56 -0400 Received: from mail-qt0-f194.google.com ([209.85.216.194]:39097 "EHLO mail-qt0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751504AbeCWQXz (ORCPT ); Fri, 23 Mar 2018 12:23:55 -0400 Received: by mail-qt0-f194.google.com with SMTP id v11so13083599qtj.6 for ; Fri, 23 Mar 2018 09:23:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=h6SALTES/ItH73SqzKPmu7E3s1rZGjbb8O+ZhavHNKQ=; b=oinqVgetF/rKBN9lMa1xm2okifJ5/ZVQ0fv7d3575rFE/ZBy/2iy/8NCiWa2rodTYr LaVxuu+V2ezMuM8N74O4A0V8NQicQ37Js7HOZSxrahbjD3ZJMztMFurokLdQLuRFEiXe yN7crJMv2OfN1vUi/lrbbvv4SEO1GtwwJWPoBN7PYeyvn+5+qT3sYl60CeWdKnMRzP/E MNSDhUUtbr3cE7/5quMruuiubLaVeo1+qbsS7wemyAMauFIjriHHMAT3tBXIXoUEVXiz 1sCWWmDp6gepsN29AStjwaudUIedBqjxtmeYpbwPFtbxNa0m7OpVrZ3sZwVbY16m4APg NVQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=h6SALTES/ItH73SqzKPmu7E3s1rZGjbb8O+ZhavHNKQ=; b=JSinOcVymY77GXWGKXbu7UqNwgwyT2f5oTSLGoCOiCTdIpU/5z07wvJLPD2inYYDnV jkmmJbiWtkM5yqa7NEdRFK7QSw1mzMcO3nCKKmQdMcTWZa4n+Xpla3YzvDdE9NrTAV99 ZpbiTMSNNM17X0LSOSdmKQ4h1TvYSXWlmB3mhQOQ1t3OLcmXyRTNtqMX+IV2FjDEaFaD YFlPKxezs0705QSUWlnaV78MbzalzWV9e9tJdYLgm9nX118UBZJscupuIh0o4khPrAig lRC91ujjJYxiJCRAR9cUkoICj4RX2e7wb9zEuJ04rqDPY4JyjIvNp3p7fKF0/PF1FGK7 5bfQ== X-Gm-Message-State: AElRT7GgX0vpjnPpbvEgqHjmquxI01For3y/n51hCRbOdLIZDpkYP5LN WYHNSzMGxx/aPG8e1SLw4eQFshMlfaT3+0xtqUs= X-Received: by 10.237.35.216 with SMTP id k24mr12193018qtc.40.1521822234872; Fri, 23 Mar 2018 09:23:54 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.137.74 with HTTP; Fri, 23 Mar 2018 09:23:54 -0700 (PDT) In-Reply-To: <20180322213722.31822-1-k.marinushkin@gmail.com> References: <20180322213722.31822-1-k.marinushkin@gmail.com> From: Andy Shevchenko Date: Fri, 23 Mar 2018 18:23:54 +0200 Message-ID: Subject: Re: [PATCH v4] staging: bcm2835-audio: Release resources on module_exit() To: Kirill Marinushkin 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(). > 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. After addressing above, FWIW, Reviewed-by: Andy Shevchenko -- With Best Regards, Andy Shevchenko