Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751158AbbG2Ivz (ORCPT ); Wed, 29 Jul 2015 04:51:55 -0400 Received: from lb2-smtp-cloud3.xs4all.net ([194.109.24.26]:57231 "EHLO lb2-smtp-cloud3.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750741AbbG2Ivx (ORCPT ); Wed, 29 Jul 2015 04:51:53 -0400 Message-ID: <1438159908.5106.32.camel@tiscali.nl> Subject: Re: [PATCH 2/4] ASoc: rockchip: Add rockchip SPDIF transceiver driver From: Paul Bolle To: Sjoerd Simons Cc: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Heiko Stuebner , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org Date: Wed, 29 Jul 2015 10:51:48 +0200 In-Reply-To: <1438085011-16577-3-git-send-email-sjoerd.simons@collabora.co.uk> References: <1438085011-16577-1-git-send-email-sjoerd.simons@collabora.co.uk> <1438085011-16577-3-git-send-email-sjoerd.simons@collabora.co.uk> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.16.4 (3.16.4-2.fc22) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1478 Lines: 49 A nit and a question. On di, 2015-07-28 at 14:03 +0200, Sjoerd Simons wrote: > --- /dev/null > +++ b/sound/soc/rockchip/rockchip_spdif.c > +#define DRV_NAME "rockchip-spdif" > +static const struct of_device_id rockchip_spdif_match[] = { > + { .compatible = "rockchip,rk3066-spdif", }, > + {}, > +}; I didn't spot MODULE_DEVICE_TABLE(of, rockchip_spdif_match); at first. It turned out that that line can be found at the bottom of this file. Please put it here. > +static struct platform_driver rockchip_spdif_driver = { > + .probe = rockchip_spdif_probe, > + .remove = rockchip_spdif_remove, > + .driver = { > + .name = DRV_NAME, > + .of_match_table = of_match_ptr(rockchip_spdif_match), > + .pm = &rockchip_spdif_pm_ops, > + }, > +}; > +module_platform_driver(rockchip_spdif_driver); > +MODULE_ALIAS("platform:" DRV_NAME); (I seem to remember that Mark Brown is OK with this, at least for the time being, but for future reference I'll ask the question anyway.) Is there a corresponding struct platform_device with a "rockchip-spdif" .name? Because if there's no such platform_device I think this line doesn't really do anything for this driver. > +MODULE_DEVICE_TABLE(of, rockchip_spdif_match); Thanks, Paul Bolle -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/