Re: [PATCH] NULL arg for get_device() / put_device()

From: Greg KH (greg_at_kroah.com)
Date: 09/30/04

  • Next message: Hanna Linder: "[PATCH 2.6.9-rc2-mm4 ibmphp_core.c][6/8] replace pci_get_device with pci_dev_present"
    Date:	Wed, 29 Sep 2004 16:27:48 -0700
    To: Hannes Reinecke <hare@suse.de>
    
    

    On Tue, Sep 28, 2004 at 09:03:21AM +0200, Hannes Reinecke wrote:
    > Greg KH wrote:
    > >On Mon, Sep 27, 2004 at 02:21:49PM +0200, Hannes Reinecke wrote:
    > >
    > >>Hi all,
    > >>
    > >>is there a specific reason that get_device accepts NULL as argument,
    > >>whereas put_device() does not?
    > >
    > >
    > >Um, I guess I never thought about it :)
    > >
    > >I don't see why it wouldn't take it, feel free to send a patch.
    > >
    > Here it is. Please apply.

    Applied, thanks.

    greg k-h
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Hanna Linder: "[PATCH 2.6.9-rc2-mm4 ibmphp_core.c][6/8] replace pci_get_device with pci_dev_present"

    Relevant Pages

    • Re: [PATCH] Memory leak in visor.c and ftdi_sio.c
      ... Greg KH wrote: ... >>A related problem with the current implementation is that is easy to ... the patch above) of the completion handler not being called might be. ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • Re: [PATCH] fix error handling in bus_add_device
      ... Greg KH wrote: ... I don't care either way, I just want to have it consistent. ... patch attached. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Linux 2.6.11.2
      ... Greg, I have now pretty well confirmed that this patch is what caused ... Copyright 2005 by Maurice Eugene Heskett, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH 2.4] jffs2 aligment problems
      ... On Monday 07 June 2004 17:08, Greg Weeks wrote: ... > XScale board. ... I just got pinged that I was supposed to post this patch ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] Sort generic PCI fixups after specific ones
      ... Greg, can you apply ... Ivan's patch, please? ... "Next the statesmen will invent cheap lies, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)