Skip to content

Commit 616a28e

Browse files
alexandrebelloniNicolas Ferre
authored andcommitted
ARM: at91: sam9g45: 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 6730fef commit 616a28e

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

arch/arm/mach-at91/at91sam9g45_devices.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
#include <linux/fb.h>
2626
#include <video/atmel_lcdc.h>
2727

28-
#include <mach/at91_adc.h>
2928
#include <mach/at91sam9g45.h>
3029
#include <mach/at91sam9g45_matrix.h>
3130
#include <mach/at91_matrix.h>
@@ -1237,13 +1236,6 @@ static struct at91_adc_trigger at91_adc_triggers[] = {
12371236
},
12381237
};
12391238

1240-
static struct at91_adc_reg_desc at91_adc_register_g45 = {
1241-
.channel_base = AT91_ADC_CHR(0),
1242-
.drdy_mask = AT91_ADC_DRDY,
1243-
.status_register = AT91_ADC_SR,
1244-
.trigger_register = 0x08,
1245-
};
1246-
12471239
void __init at91_add_device_adc(struct at91_adc_data *data)
12481240
{
12491241
if (!data)
@@ -1269,9 +1261,7 @@ void __init at91_add_device_adc(struct at91_adc_data *data)
12691261
if (data->use_external_triggers)
12701262
at91_set_A_periph(AT91_PIN_PD28, 0);
12711263

1272-
data->num_channels = 8;
12731264
data->startup_time = 40;
1274-
data->registers = &at91_adc_register_g45;
12751265
data->trigger_number = 4;
12761266
data->trigger_list = at91_adc_triggers;
12771267

0 commit comments

Comments
 (0)