summaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-proc.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-02-02 19:56:43 +0100
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-02-02 19:56:43 +0100
commit327617e1da15c3f04bfc50018b0319bd40849022 (patch)
treeadd2cecd9b29ecf4c592a2b0fe7a0496ee68663f /drivers/ide/ide-proc.c
parenteafd88a3b5d86ba2dd515d430b57a01349d0867b (diff)
downloadop-kernel-dev-327617e1da15c3f04bfc50018b0319bd40849022.zip
op-kernel-dev-327617e1da15c3f04bfc50018b0319bd40849022.tar.gz
ide: move hwif->present check out from ide_proc_register_port()
Move hwif->present check out from ide_proc_register_port() to ide_device_add_all(). There should be no functionality changes caused by this patch. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-proc.c')
-rw-r--r--drivers/ide/ide-proc.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/ide/ide-proc.c b/drivers/ide/ide-proc.c
index 00c249c..c6ed84b 100644
--- a/drivers/ide/ide-proc.c
+++ b/drivers/ide/ide-proc.c
@@ -793,9 +793,6 @@ static ide_proc_entry_t hwif_entries[] = {
void ide_proc_register_port(ide_hwif_t *hwif)
{
- if (!hwif->present)
- return;
-
if (!hwif->proc) {
hwif->proc = proc_mkdir(hwif->name, proc_ide_root);
OpenPOWER on IntegriCloud