All of lore.kernel.org
 help / color / mirror / Atom feed
From: Niklas Steinkamp <NiSteinkamp@web.de>
To: garloff@suse.de, linux-kernel@vger.kernel.org
Subject: DC390: replace pci_module_init in dc390_module_init
Date: Sat, 05 May 2007 14:28:11 +0200	[thread overview]
Message-ID: <463C785B.10007@web.de> (raw)

Hi,

while compiling the DC930 SCSI driver, i got this message:

drivers/built-in.o: In function `dc390_module_init':
tmscsim.c:(.init.text+0x124c4): undefined reference to `pci_module_init'
make: *** [.tmp_vmlinux1] Fehler 1

so i replaced "pci_module_init" with "pci_register_device"
and it works just fine.
--------------------------

diff --git a/drivers/scsi/tmscsim.c b/drivers/scsi/tmscsim.c
index a583e89..3158949 100644
--- a/drivers/scsi/tmscsim.c
+++ b/drivers/scsi/tmscsim.c
@@ -2680,7 +2680,7 @@ static int __init dc390_module_init(void)
                 printk (KERN_INFO "DC390: Using safe settings.\n");
         }

-       return pci_module_init(&dc390_driver);
+       return pci_register_driver(&dc390_driver);
  }

  static void __exit dc390_module_exit(void)

             reply	other threads:[~2007-05-05 16:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-05 12:28 Niklas Steinkamp [this message]
2007-05-05 20:23 ` DC390: replace pci_module_init in dc390_module_init Guennadi Liakhovetski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=463C785B.10007@web.de \
    --to=nisteinkamp@web.de \
    --cc=garloff@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.