Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753370AbbDWH3F (ORCPT ); Thu, 23 Apr 2015 03:29:05 -0400 Received: from mail-la0-f52.google.com ([209.85.215.52]:36584 "EHLO mail-la0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750822AbbDWH3B (ORCPT ); Thu, 23 Apr 2015 03:29:01 -0400 MIME-Version: 1.0 In-Reply-To: References: <1429719261-18024-1-git-send-email-ricardo.ribalda@gmail.com> <1429719261-18024-5-git-send-email-ricardo.ribalda@gmail.com> From: Ricardo Ribalda Delgado Date: Thu, 23 Apr 2015 09:28:39 +0200 Message-ID: Subject: Re: [PATCH v3 4/4] of/platform: Use platform_device interface To: Rob Herring Cc: Greg Kroah-Hartman , Grant Likely , Rob Herring , Andrew Morton , Jakub Sitnicki , Vivek Goyal , Bjorn Helgaas , Jiang Liu , Mike Travis , Thierry Reding , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1106 Lines: 40 Hello Rob On Wed, Apr 22, 2015 at 6:25 PM, Rob Herring wrote: >> This patch, replaces of_device_add() with platform_device_data(). > > This doesn't match the change. Thanks for catching it up. Will fix it and resend >> - if (of_device_add(dev) != 0) { >> + if (platform_device_add(dev) != 0) { > > Can't we now remove of_device_add? Now it is only used by ibmebus ricardo@neopili:~/linux-upstream$ git grep of_device_add arch/powerpc/kernel/ibmebus.c: ret = of_device_add(dev); drivers/of/device.c:int of_device_add(struct platform_device *ofdev) drivers/of/device.c: return of_device_add(pdev); include/linux/of_device.h:extern int of_device_add(struct platform_device *pdev); I think it can also use platform_device_add. I will prepare a patch to finally remove of_device_add() Thanks! -- Ricardo Ribalda -- 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/