From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1168324AbcKAJip (ORCPT ); Tue, 1 Nov 2016 05:38:45 -0400 Received: from pandora.armlinux.org.uk ([78.32.30.218]:44214 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1168277AbcKAJim (ORCPT ); Tue, 1 Nov 2016 05:38:42 -0400 Date: Tue, 1 Nov 2016 09:38:18 +0000 From: Russell King - ARM Linux To: Kuninori Morimoto Cc: Archit Taneja , Mark Brown , David Airlie , Fabio Estevam , Daniel Vetter , Koji Matsuoka , Thierry Reding , Linux-ALSA , Liam Girdwood , Simon , linux-renesas-soc@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH][resend] drm: bridge: add DesignWare HDMI I2S audio support Message-ID: <20161101093818.GQ1041@n2100.armlinux.org.uk> References: <87lgx9wa2d.wl%kuninori.morimoto.gx@renesas.com> <20161031160621.GE1041@n2100.armlinux.org.uk> <87y414dpue.wl%kuninori.morimoto.gx@renesas.com> <87wpgodozh.wl%kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87wpgodozh.wl%kuninori.morimoto.gx@renesas.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 01, 2016 at 12:36:29AM +0000, Kuninori Morimoto wrote: > > Hi Russell again > > > > > +static struct platform_driver snd_dw_hdmi_driver = { > > > > + .probe = snd_dw_hdmi_probe, > > > > > > The driver must have a .remove function, because the platform device it > > > is binding against can appear and disappear. > > > > Thank you for your feedback > > OK, I will add it > > This driver uses platform_device_register_full() and calls hdmi-codec > driver. This driver itself doesn't register sound card, like dw-hdmi-ahb-audio.c > Then, what does .remove should do in this case ? Remove the platform device that was created by platform_device_register_full(). -- RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up according to speedtest.net.