aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/ide-proc.c')
-rw-r--r--drivers/ide/ide-proc.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/ide/ide-proc.c b/drivers/ide/ide-proc.c
index 00c249cba236..975c0ff0f438 100644
--- a/drivers/ide/ide-proc.c
+++ b/drivers/ide/ide-proc.c
@@ -739,7 +739,7 @@ void ide_proc_unregister_driver(ide_drive_t *drive, ide_driver_t *driver)
739 739
740EXPORT_SYMBOL(ide_proc_unregister_driver); 740EXPORT_SYMBOL(ide_proc_unregister_driver);
741 741
742static void create_proc_ide_drives(ide_hwif_t *hwif) 742void ide_proc_port_register_devices(ide_hwif_t *hwif)
743{ 743{
744 int d; 744 int d;
745 struct proc_dir_entry *ent; 745 struct proc_dir_entry *ent;
@@ -793,9 +793,6 @@ static ide_proc_entry_t hwif_entries[] = {
793 793
794void ide_proc_register_port(ide_hwif_t *hwif) 794void ide_proc_register_port(ide_hwif_t *hwif)
795{ 795{
796 if (!hwif->present)
797 return;
798
799 if (!hwif->proc) { 796 if (!hwif->proc) {
800 hwif->proc = proc_mkdir(hwif->name, proc_ide_root); 797 hwif->proc = proc_mkdir(hwif->name, proc_ide_root);
801 798
@@ -804,8 +801,6 @@ void ide_proc_register_port(ide_hwif_t *hwif)
804 801
805 ide_add_proc_entries(hwif->proc, hwif_entries, hwif); 802 ide_add_proc_entries(hwif->proc, hwif_entries, hwif);
806 } 803 }
807
808 create_proc_ide_drives(hwif);
809} 804}
810 805
811#ifdef CONFIG_BLK_DEV_IDEPCI 806#ifdef CONFIG_BLK_DEV_IDEPCI