genirq/devres: Use dev_name(dev) as default for devname
authorHeiner Kallweit <hkallweit1@gmail.com>
Sun, 12 Feb 2017 15:31:44 +0000 (16:31 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 12 Feb 2017 18:49:25 +0000 (19:49 +0100)
commit899b5fbf9d3fcb721690b4d58cf58cc018517003
treebee7de44cc00633d1a5da4943adf43cad2e4de56
parentf435da416beaacc8934fc21820d9488269b39c98
genirq/devres: Use dev_name(dev) as default for devname

Allow the devname parameter to be NULL and use dev_name(dev) in this case.
This should be an appropriate default for most use cases.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: http://lkml.kernel.org/r/05c63d67-30b4-7026-02d5-ce7fb7bc185f@gmail.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/irq/devres.c