Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 675b5d86 authored by Dmitry Eremin-Solenikov's avatar Dmitry Eremin-Solenikov Committed by Eric Miao
Browse files

[ARM] pxa/csb701: do not register devices on non-csb726 boads



csb701 driver can currently only be used on csb726 boards,
limit the csb701 devices registration to csb726 board.

Signed-off-by: default avatarDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: default avatarEric Miao <eric.miao@marvell.com>
parent 8a28b10e
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -5,6 +5,8 @@
#include <linux/input.h>
#include <linux/input.h>
#include <linux/leds.h>
#include <linux/leds.h>


#include <asm/mach-types.h>

static struct gpio_keys_button csb701_buttons[] = {
static struct gpio_keys_button csb701_buttons[] = {
	{
	{
		.code	= 0x7,
		.code	= 0x7,
@@ -54,6 +56,9 @@ static struct platform_device *devices[] __initdata = {


static int __init csb701_init(void)
static int __init csb701_init(void)
{
{
	if (!machine_is_csb726())
		return -ENODEV;

	return platform_add_devices(devices, ARRAY_SIZE(devices));
	return platform_add_devices(devices, ARRAY_SIZE(devices));
}
}