diff options
Diffstat (limited to 'drivers/cdrom/gdrom.c')
-rw-r--r-- | drivers/cdrom/gdrom.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/cdrom/gdrom.c b/drivers/cdrom/gdrom.c index 75d485afe56c..d59cdcb8fe39 100644 --- a/drivers/cdrom/gdrom.c +++ b/drivers/cdrom/gdrom.c | |||
@@ -557,7 +557,7 @@ static irqreturn_t gdrom_dma_interrupt(int irq, void *dev_id) | |||
557 | return IRQ_HANDLED; | 557 | return IRQ_HANDLED; |
558 | } | 558 | } |
559 | 559 | ||
560 | static int __devinit gdrom_set_interrupt_handlers(void) | 560 | static int gdrom_set_interrupt_handlers(void) |
561 | { | 561 | { |
562 | int err; | 562 | int err; |
563 | 563 | ||
@@ -681,7 +681,7 @@ static void gdrom_request(struct request_queue *rq) | |||
681 | } | 681 | } |
682 | 682 | ||
683 | /* Print string identifying GD ROM device */ | 683 | /* Print string identifying GD ROM device */ |
684 | static int __devinit gdrom_outputversion(void) | 684 | static int gdrom_outputversion(void) |
685 | { | 685 | { |
686 | struct gdrom_id *id; | 686 | struct gdrom_id *id; |
687 | char *model_name, *manuf_name, *firmw_ver; | 687 | char *model_name, *manuf_name, *firmw_ver; |
@@ -715,7 +715,7 @@ free_id: | |||
715 | } | 715 | } |
716 | 716 | ||
717 | /* set the default mode for DMA transfer */ | 717 | /* set the default mode for DMA transfer */ |
718 | static int __devinit gdrom_init_dma_mode(void) | 718 | static int gdrom_init_dma_mode(void) |
719 | { | 719 | { |
720 | __raw_writeb(0x13, GDROM_ERROR_REG); | 720 | __raw_writeb(0x13, GDROM_ERROR_REG); |
721 | __raw_writeb(0x22, GDROM_INTSEC_REG); | 721 | __raw_writeb(0x22, GDROM_INTSEC_REG); |
@@ -736,7 +736,7 @@ static int __devinit gdrom_init_dma_mode(void) | |||
736 | return 0; | 736 | return 0; |
737 | } | 737 | } |
738 | 738 | ||
739 | static void __devinit probe_gdrom_setupcd(void) | 739 | static void probe_gdrom_setupcd(void) |
740 | { | 740 | { |
741 | gd.cd_info->ops = &gdrom_ops; | 741 | gd.cd_info->ops = &gdrom_ops; |
742 | gd.cd_info->capacity = 1; | 742 | gd.cd_info->capacity = 1; |
@@ -745,7 +745,7 @@ static void __devinit probe_gdrom_setupcd(void) | |||
745 | CDC_SELECT_DISC; | 745 | CDC_SELECT_DISC; |
746 | } | 746 | } |
747 | 747 | ||
748 | static void __devinit probe_gdrom_setupdisk(void) | 748 | static void probe_gdrom_setupdisk(void) |
749 | { | 749 | { |
750 | gd.disk->major = gdrom_major; | 750 | gd.disk->major = gdrom_major; |
751 | gd.disk->first_minor = 1; | 751 | gd.disk->first_minor = 1; |
@@ -753,7 +753,7 @@ static void __devinit probe_gdrom_setupdisk(void) | |||
753 | strcpy(gd.disk->disk_name, GDROM_DEV_NAME); | 753 | strcpy(gd.disk->disk_name, GDROM_DEV_NAME); |
754 | } | 754 | } |
755 | 755 | ||
756 | static int __devinit probe_gdrom_setupqueue(void) | 756 | static int probe_gdrom_setupqueue(void) |
757 | { | 757 | { |
758 | blk_queue_logical_block_size(gd.gdrom_rq, GDROM_HARD_SECTOR); | 758 | blk_queue_logical_block_size(gd.gdrom_rq, GDROM_HARD_SECTOR); |
759 | /* using DMA so memory will need to be contiguous */ | 759 | /* using DMA so memory will need to be contiguous */ |
@@ -768,7 +768,7 @@ static int __devinit probe_gdrom_setupqueue(void) | |||
768 | * register this as a block device and as compliant with the | 768 | * register this as a block device and as compliant with the |
769 | * universal CD Rom driver interface | 769 | * universal CD Rom driver interface |
770 | */ | 770 | */ |
771 | static int __devinit probe_gdrom(struct platform_device *devptr) | 771 | static int probe_gdrom(struct platform_device *devptr) |
772 | { | 772 | { |
773 | int err; | 773 | int err; |
774 | /* Start the device */ | 774 | /* Start the device */ |
@@ -838,7 +838,7 @@ probe_fail_no_mem: | |||
838 | return err; | 838 | return err; |
839 | } | 839 | } |
840 | 840 | ||
841 | static int __devexit remove_gdrom(struct platform_device *devptr) | 841 | static int remove_gdrom(struct platform_device *devptr) |
842 | { | 842 | { |
843 | flush_work(&work); | 843 | flush_work(&work); |
844 | blk_cleanup_queue(gd.gdrom_rq); | 844 | blk_cleanup_queue(gd.gdrom_rq); |
@@ -854,7 +854,7 @@ static int __devexit remove_gdrom(struct platform_device *devptr) | |||
854 | 854 | ||
855 | static struct platform_driver gdrom_driver = { | 855 | static struct platform_driver gdrom_driver = { |
856 | .probe = probe_gdrom, | 856 | .probe = probe_gdrom, |
857 | .remove = __devexit_p(remove_gdrom), | 857 | .remove = remove_gdrom, |
858 | .driver = { | 858 | .driver = { |
859 | .name = GDROM_DEV_NAME, | 859 | .name = GDROM_DEV_NAME, |
860 | }, | 860 | }, |