diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2019-07-30 11:28:57 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-07-30 12:34:39 +0200 |
commit | fb583c8eeeb1fd57e24ef41ed94c9112067aeac9 (patch) | |
tree | 987facf4a786b7cabd0da04fc948fd893c18697e /drivers/rtc/interface.c | |
parent | bbe70e4e421116db0af3acf84cbce3c3f6cac53e (diff) | |
download | linux-fb583c8eeeb1fd57e24ef41ed94c9112067aeac9.tar.gz linux-fb583c8eeeb1fd57e24ef41ed94c9112067aeac9.tar.bz2 linux-fb583c8eeeb1fd57e24ef41ed94c9112067aeac9.zip |
driver core: Fix creation of device links with PM-runtime flags
After commit 515db266a9da ("driver core: Remove device link creation
limitation"), if PM-runtime flags are passed to device_link_add(), it
will fail (returning NULL) due to an overly restrictive flags check
introduced by that commit.
Fix this issue by extending the check in question to cover the
PM-runtime flags too.
Fixes: 515db266a9da ("driver core: Remove device link creation limitation")
Reported-by: Dmitry Osipenko <digetx@gmail.com>
Tested-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Tested-by: Dmitry Osipenko <digetx@gmail.com>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Link: https://lore.kernel.org/r/7674989.cD04D8YV3U@kreacher
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/rtc/interface.c')
0 files changed, 0 insertions, 0 deletions