From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: [PATCH v5 1/2] Mailbox: Add support for Platform Communication Channel Date: Thu, 04 Sep 2014 16:55:38 +0200 Message-ID: <2751441.DbtaX4JgI6@wuerfel> References: <1409782760-3958-1-git-send-email-ashwin.chaugule@linaro.org> <5470309.KpxVtJyk9p@wuerfel> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Return-path: Received: from mout.kundenserver.de ([212.227.126.187]:58721 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751004AbaIDOzy (ORCPT ); Thu, 4 Sep 2014 10:55:54 -0400 In-Reply-To: Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: Ashwin Chaugule Cc: linux acpi , "linaro-acpi@lists.linaro.org" , "Rafael J. Wysocki" , Mark Brown On Thursday 04 September 2014 10:48:00 Ashwin Chaugule wrote: > > >> + * Create a virtual device to back the PCCT, so > >> + * that the generic Mailbox framework can do its > >> + * ref counting. > >> + */ > >> +struct platform_device pcc_pdev = { > >> + .name = "PCCT", > >> +}; > > > > Don't declare platform devices statically in C code, just > > use platform_create_bundle() here to create the device dynamically > > and bind it to the driver. That will also simplify the driver > > initalization. > > > > Nice. Didn't know about this. It's almost always inappropriate, but I guess here it makes sense. Normally we want drivers to be loadable when the device shows up, but you can't do that here anyway. Arnd