PM / wakeup: wakeup_source_create: use kstrdup_const
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Wed, 9 Sep 2015 21:42:06 +0000 (23:42 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 25 Sep 2015 00:30:50 +0000 (02:30 +0200)
commit7236214c88454d96de7633e07a8314644d529f26
tree55a5a0bbafadd1c74793205a717d3c043c815e0c
parenta6f5f0dd4e21191ce35030dd4d6421e1cca10ee4
PM / wakeup: wakeup_source_create: use kstrdup_const

Using kstrdup_const allows us to save a little runtime memory (and a
string copy) in the common case where name is a string literal.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/wakeup.c