mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-01 06:42:31 +00:00
[ARM] 5073/1: spitz_pm: don't register devices on non-spitz machines
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com> Acked-by: Richard Purdie <rpurdie@rpsys.net> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
parent
043fbc099a
commit
5806d8abf6
@ -26,6 +26,7 @@
|
|||||||
#include <asm/arch/sharpsl.h>
|
#include <asm/arch/sharpsl.h>
|
||||||
#include <asm/arch/spitz.h>
|
#include <asm/arch/spitz.h>
|
||||||
#include <asm/arch/pxa-regs.h>
|
#include <asm/arch/pxa-regs.h>
|
||||||
|
#include <asm/arch/pxa2xx-regs.h>
|
||||||
#include <asm/arch/pxa2xx-gpio.h>
|
#include <asm/arch/pxa2xx-gpio.h>
|
||||||
#include "sharpsl.h"
|
#include "sharpsl.h"
|
||||||
|
|
||||||
@ -231,6 +232,10 @@ static int __devinit spitzpm_init(void)
|
|||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
if (!machine_is_spitz() && !machine_is_akita()
|
||||||
|
&& !machine_is_borzoi())
|
||||||
|
return -ENODEV;
|
||||||
|
|
||||||
spitzpm_device = platform_device_alloc("sharpsl-pm", -1);
|
spitzpm_device = platform_device_alloc("sharpsl-pm", -1);
|
||||||
if (!spitzpm_device)
|
if (!spitzpm_device)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
Loading…
Reference in New Issue
Block a user