[ide] remove unused internal exports from ide core

From: Arjan van de Ven <arjan@fenrus.demon.nl>

ide-iops.c exports a few functions that either have no users or have no
users AND shouldn't be used by drivers; the patch below unexports them.

-EXPORT_SYMBOL(SELECT_INTERRUPT);
-EXPORT_SYMBOL(SELECT_MASK);
-EXPORT_SYMBOL(QUIRK_LIST);
-EXPORT_SYMBOL(ata_vlb_sync);

only used in the core ide code

-EXPORT_SYMBOL(ata_input_data);
-EXPORT_SYMBOL(ata_output_data);

drivers should (and do) use the hwif-> function pointer variant of these,
these functions are internal and used for setting the default hwif->
function pointers only. No need to export, in fact exporting is only asking
for accidents
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
parent 8f62e238
...@@ -221,24 +221,18 @@ void SELECT_INTERRUPT (ide_drive_t *drive) ...@@ -221,24 +221,18 @@ void SELECT_INTERRUPT (ide_drive_t *drive)
HWIF(drive)->OUTB(drive->ctl|2, IDE_CONTROL_REG); HWIF(drive)->OUTB(drive->ctl|2, IDE_CONTROL_REG);
} }
EXPORT_SYMBOL(SELECT_INTERRUPT);
void SELECT_MASK (ide_drive_t *drive, int mask) void SELECT_MASK (ide_drive_t *drive, int mask)
{ {
if (HWIF(drive)->maskproc) if (HWIF(drive)->maskproc)
HWIF(drive)->maskproc(drive, mask); HWIF(drive)->maskproc(drive, mask);
} }
EXPORT_SYMBOL(SELECT_MASK);
void QUIRK_LIST (ide_drive_t *drive) void QUIRK_LIST (ide_drive_t *drive)
{ {
if (HWIF(drive)->quirkproc) if (HWIF(drive)->quirkproc)
drive->quirk_list = HWIF(drive)->quirkproc(drive); drive->quirk_list = HWIF(drive)->quirkproc(drive);
} }
EXPORT_SYMBOL(QUIRK_LIST);
/* /*
* Some localbus EIDE interfaces require a special access sequence * Some localbus EIDE interfaces require a special access sequence
* when using 32-bit I/O instructions to transfer data. We call this * when using 32-bit I/O instructions to transfer data. We call this
...@@ -253,8 +247,6 @@ void ata_vlb_sync (ide_drive_t *drive, unsigned long port) ...@@ -253,8 +247,6 @@ void ata_vlb_sync (ide_drive_t *drive, unsigned long port)
(void) HWIF(drive)->INB(port); (void) HWIF(drive)->INB(port);
} }
EXPORT_SYMBOL(ata_vlb_sync);
/* /*
* This is used for most PIO data transfers *from* the IDE interface * This is used for most PIO data transfers *from* the IDE interface
*/ */
...@@ -277,8 +269,6 @@ void ata_input_data (ide_drive_t *drive, void *buffer, u32 wcount) ...@@ -277,8 +269,6 @@ void ata_input_data (ide_drive_t *drive, void *buffer, u32 wcount)
} }
} }
EXPORT_SYMBOL(ata_input_data);
/* /*
* This is used for most PIO data transfers *to* the IDE interface * This is used for most PIO data transfers *to* the IDE interface
*/ */
...@@ -301,8 +291,6 @@ void ata_output_data (ide_drive_t *drive, void *buffer, u32 wcount) ...@@ -301,8 +291,6 @@ void ata_output_data (ide_drive_t *drive, void *buffer, u32 wcount)
} }
} }
EXPORT_SYMBOL(ata_output_data);
/* /*
* The following routines are mainly used by the ATAPI drivers. * The following routines are mainly used by the ATAPI drivers.
* *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment