linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Hauke Mehrtens <hauke@hauke-m.de>
To: Joachim Eastwood <manabian@gmail.com>, Kalle Valo <kvalo@codeaurora.org>
Cc: "Rafał Miłecki" <zajec5@gmail.com>,
	"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
	"linux-arm-kernel@lists.infradead.org"
	<linux-arm-kernel@lists.infradead.org>,
	"Arnd Bergmann" <arnd@arndb.de>
Subject: Re: [PATCH] bcma: populate bus DT subnodes as platform_device-s
Date: Sat, 25 Jul 2015 20:55:22 +0200	[thread overview]
Message-ID: <55B3DB9A.9060209@hauke-m.de> (raw)
In-Reply-To: <CAGhQ9VyH4yvnU_kPAy3a7Z+80jNV8uNoTr=Nd=eV2D-iz9YVUQ@mail.gmail.com>

On 07/24/2015 06:11 PM, Joachim Eastwood wrote:
> On 23 July 2015 at 08:06, Kalle Valo <kvalo@codeaurora.org> wrote:
>> Rafał Miłecki <zajec5@gmail.com> writes:
>>
>>>> +       if (bus->host_pdev) {
>>>> +               struct device *dev = &bus->host_pdev->dev;
>>>> +
>>>> +               of_platform_populate(dev->of_node, of_default_bus_match_table,
>>>> +                                    NULL, dev);
>>>> +       }
>>>> +
>>>
>>> This caused a compile error when using bcma as module:
>>> ERROR: "of_default_bus_match_table" [drivers/bcma/bcma.ko] undefined!
> 
> I encountered the same problem with my modular memory controller driver.
> 
>>> There are two options I guess:
>>> 1) Export of_default_bus_match_table
> 
> See link below for Rob Herring's take on that.
> http://marc.info/?l=linaro-kernel&m=143766694414121&w=2
> 
> 
> regards,
> Joachim Eastwood
> 
Hi Joachim,

are you working on a patch which exports "of_default_bus_match_table"
or provides a wrapper function? If not then I will look into this. My
current plan for bcma is just to deactivate this when it is build as a
module as a temporary workaround

Hauke

  reply	other threads:[~2015-07-25 18:55 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-28 15:17 [PATCH] bcma: populate bus DT subnodes as platform_device-s Rafał Miłecki
2015-06-30 21:45 ` Hauke Mehrtens
2015-07-01  4:45   ` Rafał Miłecki
2015-07-21 14:07 ` Kalle Valo
2015-07-23  0:30 ` Rafał Miłecki
2015-07-23  6:06   ` Kalle Valo
2015-07-24 16:11     ` Joachim Eastwood
2015-07-25 18:55       ` Hauke Mehrtens [this message]
2015-07-25 21:00         ` Joachim Eastwood
2015-08-02 18:03 ` Hauke Mehrtens

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=55B3DB9A.9060209@hauke-m.de \
    --to=hauke@hauke-m.de \
    --cc=arnd@arndb.de \
    --cc=kvalo@codeaurora.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=manabian@gmail.com \
    --cc=zajec5@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
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;
as well as URLs for NNTP newsgroup(s).