From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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=-5.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no 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 54ECAC48BE5 for ; Tue, 15 Jun 2021 07:27:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2B6F36140B for ; Tue, 15 Jun 2021 07:27:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230060AbhFOH3d (ORCPT ); Tue, 15 Jun 2021 03:29:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:53810 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230043AbhFOH33 (ORCPT ); Tue, 15 Jun 2021 03:29:29 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C1ACE600CD; Tue, 15 Jun 2021 07:27:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1623742045; bh=6E2jASHKlmHdMb15628SwWOH4StarhjrsgR8qI9zr2w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hfI5IeY9beiYabNC8lzqBqRNIMdAo4hwrGMRV1AriX7sMV2mJxP3unzyfAzZVUKJ2 8hHcTnCwWcpREILj3/i7UtAoeLSzODrCBfNcd7j56AhDRd13yHMAaTTecnUanLq+y6 BxBXgvIera1WJHU2glvsI/MuxsTI42I7ox6sv/EI= Date: Tue, 15 Jun 2021 09:27:22 +0200 From: Greg KH To: Moritz Fischer Cc: linux-fpga@vger.kernel.org, Russ Weight , Xu Yilun Subject: Re: [PATCH 8/8] fpga: region: Use standard dev_release for class driver Message-ID: References: <20210614170909.232415-1-mdf@kernel.org> <20210614170909.232415-9-mdf@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210614170909.232415-9-mdf@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-fpga@vger.kernel.org On Mon, Jun 14, 2021 at 10:09:09AM -0700, Moritz Fischer wrote: > From: Russ Weight > > The FPGA region class driver data structure is being treated as a managed > resource instead of using standard dev_release call-back to release the > class data structure. This change populates the class.dev_release function > and changes the fpga_region_free() function to call put_device(). > It also changes fpga_region_unregister() to call device_del() instead > of device_unregister(). Same problem as the other ones :(