USB: Fix usb/isp1760 build on sparc
authorDavid Miller <davem@davemloft.net>
Wed, 21 Dec 2011 22:31:54 +0000 (17:31 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 21 Dec 2011 22:41:04 +0000 (14:41 -0800)
commitabf058e10c2614c36ba217405768e8e74853fc80
treec4050ac72098edfd37adb7037fbf7bf2b03030cc
parent384703b8e6cd4c8ef08512e596024e028c91c339
USB: Fix usb/isp1760 build on sparc

This commit:

commit 8f5d621543cb064d2989fc223d3c2bc61a43981e
Author: Joachim Foerster <joachim.foerster@missinglinkelectronics.com>
Date:   Mon Oct 10 18:06:54 2011 +0200

    usb/isp1760: Let OF bindings depend on general CONFIG_OF instead of PPC_OF .

    To be able to use the driver on other OF-aware architectures, too.
    And add necessary OF related #includes to fix compilation error.

Signed-off-by: Joachim Foerster <joachim.foerster@missinglinkelectronics.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

enabled the build on all CONFIG_OF architectures, but it cannot do
this.

This driver depends upon CONFIG_OF_IRQ but not all CONFIG_OF platforms
support that infrastructure, in particular Sparc does not so the
build fails.

Please push a patch like the following to Linus so that this code only
gets built where it actually should.

--------------------
usb/isp1760: Add missing CONFIG_OF_IRQ dependency on OF code.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/isp1760-if.c