CONFIG_HOTPLUG is going away as an option and __devinit will go away
as an attribute.

Signed-off-by: Bill Pemberton <wf...@virginia.edu>
Cc: Mauro Carvalho Chehab <mche...@infradead.org> 
Cc: Rob Landley <r...@landley.net> 
Cc: linux-media@vger.kernel.org 
Cc: linux-...@vger.kernel.org 
---
 Documentation/DocBook/media/v4l/driver.xml        |  2 +-
 Documentation/DocBook/writing-an-alsa-driver.tmpl | 22 ++++++++--------------
 2 files changed, 9 insertions(+), 15 deletions(-)

diff --git a/Documentation/DocBook/media/v4l/driver.xml 
b/Documentation/DocBook/media/v4l/driver.xml
index cbfe8e3..c502c50 100644
--- a/Documentation/DocBook/media/v4l/driver.xml
+++ b/Documentation/DocBook/media/v4l/driver.xml
@@ -124,7 +124,7 @@ my_remove               (struct pci_dev *               
pci_dev)
        /* Describe me. */
 }
 
-static int __devinit
+static int
 my_probe                (struct pci_dev *               pci_dev,
                         const struct pci_device_id *   pci_id)
 {
diff --git a/Documentation/DocBook/writing-an-alsa-driver.tmpl 
b/Documentation/DocBook/writing-an-alsa-driver.tmpl
index ec40c05..bf03949 100644
--- a/Documentation/DocBook/writing-an-alsa-driver.tmpl
+++ b/Documentation/DocBook/writing-an-alsa-driver.tmpl
@@ -433,7 +433,7 @@
   /* chip-specific constructor
    * (see "Management of Cards and Components")
    */
-  static int __devinit snd_mychip_create(struct snd_card *card,
+  static int snd_mychip_create(struct snd_card *card,
                                          struct pci_dev *pci,
                                          struct mychip **rchip)
   {
@@ -475,7 +475,7 @@
   }
 
   /* constructor -- see "Constructor" sub-section */
-  static int __devinit snd_mychip_probe(struct pci_dev *pci,
+  static int snd_mychip_probe(struct pci_dev *pci,
                                const struct pci_device_id *pci_id)
   {
           static int dev;
@@ -541,11 +541,6 @@
       <title>Constructor</title>
       <para>
         The real constructor of PCI drivers is the <function>probe</function> 
callback.
-      The <function>probe</function> callback and other component-constructors 
which are called
-      from the <function>probe</function> callback should be defined with
-      the <parameter>__devinit</parameter> prefix. You 
-      cannot use the <parameter>__init</parameter> prefix for them,
-      because any PCI device could be a hotplug device. 
       </para>
 
       <para>
@@ -1120,7 +1115,7 @@
   }
 
   /* chip-specific constructor */
-  static int __devinit snd_mychip_create(struct snd_card *card,
+  static int snd_mychip_create(struct snd_card *card,
                                          struct pci_dev *pci,
                                          struct mychip **rchip)
   {
@@ -1662,7 +1657,6 @@
         Note that these module entries are tagged with
       <parameter>__init</parameter> and 
       <parameter>__exit</parameter> prefixes, not
-      <parameter>__devinit</parameter> nor
       <parameter>__devexit</parameter>.
       </para>
 
@@ -1914,7 +1908,7 @@
    */
 
   /* create a pcm device */
-  static int __devinit snd_mychip_new_pcm(struct mychip *chip)
+  static int snd_mychip_new_pcm(struct mychip *chip)
   {
           struct snd_pcm *pcm;
           int err;
@@ -1953,7 +1947,7 @@
         <informalexample>
           <programlisting>
 <![CDATA[
-  static int __devinit snd_mychip_new_pcm(struct mychip *chip)
+  static int snd_mychip_new_pcm(struct mychip *chip)
   {
           struct snd_pcm *pcm;
           int err;
@@ -2120,7 +2114,7 @@
           ....
   }
 
-  static int __devinit snd_mychip_new_pcm(struct mychip *chip)
+  static int snd_mychip_new_pcm(struct mychip *chip)
   {
           struct snd_pcm *pcm;
           ....
@@ -5757,7 +5751,7 @@ struct _snd_pcm_runtime {
       <informalexample>
         <programlisting>
 <![CDATA[
-  static int __devinit snd_mychip_probe(struct pci_dev *pci,
+  static int snd_mychip_probe(struct pci_dev *pci,
                                const struct pci_device_id *pci_id)
   {
           ....
@@ -5783,7 +5777,7 @@ struct _snd_pcm_runtime {
       <informalexample>
         <programlisting>
 <![CDATA[
-  static int __devinit snd_mychip_probe(struct pci_dev *pci,
+  static int snd_mychip_probe(struct pci_dev *pci,
                                const struct pci_device_id *pci_id)
   {
           ....
-- 
1.8.0

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to