Skip to content

Commit acc8b8e

Browse files
alexandrebelloniNicolas Ferre
authored andcommitted
ARM: at91: sam9260: remove unused platform_data
num_channels and registers are not used anymore since they are defined inside the at91_adc driver and assigned by matching the id_table. Also, remove the mach/at91_adc.h include that is not necessary anymore. Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> Acked-by: Jonathan Cameron <jic23@kernel.org> Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
1 parent 616a28e commit acc8b8e

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

arch/arm/mach-at91/at91sam9260_devices.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
#include <mach/at91sam9260_matrix.h>
2525
#include <mach/at91_matrix.h>
2626
#include <mach/at91sam9_smc.h>
27-
#include <mach/at91_adc.h>
2827
#include <mach/hardware.h>
2928

3029
#include "board.h"
@@ -1325,13 +1324,6 @@ static struct at91_adc_trigger at91_adc_triggers[] = {
13251324
},
13261325
};
13271326

1328-
static struct at91_adc_reg_desc at91_adc_register_g20 = {
1329-
.channel_base = AT91_ADC_CHR(0),
1330-
.drdy_mask = AT91_ADC_DRDY,
1331-
.status_register = AT91_ADC_SR,
1332-
.trigger_register = AT91_ADC_MR,
1333-
};
1334-
13351327
void __init at91_add_device_adc(struct at91_adc_data *data)
13361328
{
13371329
if (!data)
@@ -1349,9 +1341,7 @@ void __init at91_add_device_adc(struct at91_adc_data *data)
13491341
if (data->use_external_triggers)
13501342
at91_set_A_periph(AT91_PIN_PA22, 0);
13511343

1352-
data->num_channels = 4;
13531344
data->startup_time = 10;
1354-
data->registers = &at91_adc_register_g20;
13551345
data->trigger_number = 4;
13561346
data->trigger_list = at91_adc_triggers;
13571347

0 commit comments

Comments
 (0)