public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
From: Philipp Ittershagen <lists@gate-nine•de>
To: Guillaume Dargaud <dargaud@lpsc•in2p3.fr>
Cc: linuxppc-dev@lists•ozlabs.org
Subject: Re: Changes to of_device ?
Date: Fri, 17 Jun 2011 15:06:52 +0200	[thread overview]
Message-ID: <4DFB516C.4060602@gate-nine.de> (raw)
In-Reply-To: <4DFB4F51.1090509@gate-nine.de>

On 06/17/2011 02:57 PM, Philipp Ittershagen wrote:
> The struct device_node was moved to struct device in order to make the
> CONFIG_OF more generic. See
> 
> commit d706c1b050274b3bf97d7cb0542c0d070c9ccb8b
> Author: Grant Likely <grant.likely@secretlab•ca>
> Date:   Tue Apr 13 16:12:28 2010 -0700
> 
>     driver-core: Add device node pointer to struct device
> 

I'm sorry, I should have mentioned that struct of_device was replaced by
struct platform_device. So in order to get your code compiled, you have
to change the probe function to

static int xad_driver_probe(struct platform_device* dev, const struct
of_device_id *match) {

The change was introduced by

commit 2dc11581376829303b98eadb2de253bee065a56a
Author: Grant Likely <grant.likely@secretlab•ca>
Date:   Fri Aug 6 09:25:50 2010 -0600

    of/device: Replace struct of_device with struct platform_device


Greetings,

  Philipp

  reply	other threads:[~2011-06-17 13:06 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-17  9:19 Changes to of_device ? Guillaume Dargaud
2011-06-17 10:55 ` Philipp Ittershagen
2011-06-17 11:22   ` Guillaume Dargaud
2011-06-17 12:57     ` Philipp Ittershagen
2011-06-17 13:06       ` Philipp Ittershagen [this message]
2011-06-17 13:53         ` Guillaume Dargaud
2011-06-17 14:08           ` Grant Likely
2011-06-17 14:23             ` David Laight

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4DFB516C.4060602@gate-nine.de \
    --to=lists@gate-nine$(echo .)de \
    --cc=dargaud@lpsc$(echo .)in2p3.fr \
    --cc=linuxppc-dev@lists$(echo .)ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox