core: platform: add warning if driver has no owner
authorWolfram Sang <wsa@the-dreams.de>
Tue, 28 Oct 2014 16:40:40 +0000 (17:40 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Nov 2014 23:16:01 +0000 (15:16 -0800)
commit161d6981096f5700ff5a2618bc9337c157eb717a
tree29a6f7a874eaaebb0aab056747583a563126283b
parenta8a93c6f9922c0d70459668c1300b226cb3918ab
core: platform: add warning if driver has no owner

Commit 9447057eaff8 ("platform_device: use a macro instead of
platform_driver_register") introduced a codepath which could result into
drivers having no owner. This went unnoticed for months, so add a
warning in case this happens again somewhere else somewhen.

Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/driver.c