From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: [PATCH v3 3/3] misc: Add w2sg0004 gps receiver driver Date: Fri, 16 Oct 2015 21:06:14 +0200 Message-ID: <3951119.loGSTxYIZb@wuerfel> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Return-path: In-Reply-To: Sender: linux-doc-owner@vger.kernel.org To: "H. Nikolaus Schaller" Cc: Jiri Slaby , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Jonathan Corbet , Sergei Zviagintsev , Peter Hurley , One Thousand Gnomes , Sebastian Reichel , NeilBrown , Grant Likely , LKML , linux-serial@vger.kernel.org, Marek Belisko , devicetree@vger.kernel.org, linux-doc@vger.kernel.org List-Id: devicetree@vger.kernel.org On Friday 16 October 2015 20:08:35 H. Nikolaus Schaller wrote: > + > +static int w2sg_data_probe(struct platform_device *pdev) > +{ > + struct w2sg_pdata *pdata = dev_get_platdata(&pdev->dev); > + struct w2sg_data *data; > + struct rfkill *rf_kill; > + int err; > + > + pr_debug("%s()\n", __func__); > + > + if (pdev->dev.of_node) { > + struct device *dev = &pdev->dev; > + enum of_gpio_flags flags; > + > + pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); > + if (!pdata) > Why is this a platform_device and not a serio_device? Arnd