netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net: emaclite: include linux/of_irq.h
@ 2013-06-03 21:39 Arnd Bergmann
  2013-06-04  8:21 ` Michal Simek
  0 siblings, 1 reply; 4+ messages in thread
From: Arnd Bergmann @ 2013-06-03 21:39 UTC (permalink / raw)
  To: netdev; +Cc: linux-kernel, David Miller, Michal Simek

The emaclite driver now calls of_irq_to_resource, which is
declared in linux/of_irq.h. Without this patch, I get a build
error on ARM.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Michal Simek <michal.simek@xilinx.com>

diff --git a/drivers/net/ethernet/xilinx/xilinx_emaclite.c b/drivers/net/ethernet/xilinx/xilinx_emaclite.c
index aa14d8a..9559a3d 100644
--- a/drivers/net/ethernet/xilinx/xilinx_emaclite.c
+++ b/drivers/net/ethernet/xilinx/xilinx_emaclite.c
@@ -22,6 +22,7 @@
 #include <linux/slab.h>
 #include <linux/of_address.h>
 #include <linux/of_device.h>
+#include <linux/of_irq.h>
 #include <linux/of_platform.h>
 #include <linux/of_mdio.h>
 #include <linux/of_net.h>

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] net: emaclite: include linux/of_irq.h
  2013-06-03 21:39 [PATCH] net: emaclite: include linux/of_irq.h Arnd Bergmann
@ 2013-06-04  8:21 ` Michal Simek
  2013-06-04  8:44   ` Arnd Bergmann
  0 siblings, 1 reply; 4+ messages in thread
From: Michal Simek @ 2013-06-04  8:21 UTC (permalink / raw)
  To: Arnd Bergmann; +Cc: netdev, linux-kernel, David Miller, Michal Simek

[-- Attachment #1: Type: text/plain, Size: 600 bytes --]

On 06/03/2013 11:39 PM, Arnd Bergmann wrote:
> The emaclite driver now calls of_irq_to_resource, which is
> declared in linux/of_irq.h. Without this patch, I get a build
> error on ARM.

What about to just change it to use platform_get_resource()?
I will test it.

Thanks,
Michal

-- 
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Microblaze cpu - http://www.monstr.eu/fdt/
Maintainer of Linux kernel - Xilinx Zynq ARM architecture
Microblaze U-BOOT custodian and responsible for u-boot arm zynq platform



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 263 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] net: emaclite: include linux/of_irq.h
  2013-06-04  8:21 ` Michal Simek
@ 2013-06-04  8:44   ` Arnd Bergmann
  2013-06-04  8:46     ` Michal Simek
  0 siblings, 1 reply; 4+ messages in thread
From: Arnd Bergmann @ 2013-06-04  8:44 UTC (permalink / raw)
  To: monstr; +Cc: netdev, linux-kernel, David Miller, Michal Simek

On Tuesday 04 June 2013 10:21:01 Michal Simek wrote:
> On 06/03/2013 11:39 PM, Arnd Bergmann wrote:
> > The emaclite driver now calls of_irq_to_resource, which is
> > declared in linux/of_irq.h. Without this patch, I get a build
> > error on ARM.
> 
> What about to just change it to use platform_get_resource()?
> I will test it.

Yes, that would work too. It seems the driver predates the automatic
generation of resources for IRQs and MMIO registers.

If you change the IRQ resource to platform_get_resource, you should
change the other one as well.

	Arnd

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] net: emaclite: include linux/of_irq.h
  2013-06-04  8:44   ` Arnd Bergmann
@ 2013-06-04  8:46     ` Michal Simek
  0 siblings, 0 replies; 4+ messages in thread
From: Michal Simek @ 2013-06-04  8:46 UTC (permalink / raw)
  To: Arnd Bergmann; +Cc: monstr, netdev, linux-kernel, David Miller, Michal Simek

[-- Attachment #1: Type: text/plain, Size: 1049 bytes --]

On 06/04/2013 10:44 AM, Arnd Bergmann wrote:
> On Tuesday 04 June 2013 10:21:01 Michal Simek wrote:
>> On 06/03/2013 11:39 PM, Arnd Bergmann wrote:
>>> The emaclite driver now calls of_irq_to_resource, which is
>>> declared in linux/of_irq.h. Without this patch, I get a build
>>> error on ARM.
>>
>> What about to just change it to use platform_get_resource()?
>> I will test it.
> 
> Yes, that would work too. It seems the driver predates the automatic
> generation of resources for IRQs and MMIO registers.
> 
> If you change the IRQ resource to platform_get_resource, you should
> change the other one as well.

Yep. I have done that changes. Let me test them on real hw
and I will send them soon.

Thanks,
Michal

-- 
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Microblaze cpu - http://www.monstr.eu/fdt/
Maintainer of Linux kernel - Xilinx Zynq ARM architecture
Microblaze U-BOOT custodian and responsible for u-boot arm zynq platform



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 263 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-06-04  8:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-03 21:39 [PATCH] net: emaclite: include linux/of_irq.h Arnd Bergmann
2013-06-04  8:21 ` Michal Simek
2013-06-04  8:44   ` Arnd Bergmann
2013-06-04  8:46     ` Michal Simek

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).