Commit b9e3fc29 authored by Paul Mundt's avatar Paul Mundt

Merge branch 'sh/driver-core'

parents 209791b2 06fe53be
...@@ -1259,7 +1259,7 @@ static int __init early_platform_driver_probe_id(char *class_str, ...@@ -1259,7 +1259,7 @@ static int __init early_platform_driver_probe_id(char *class_str,
* dev_name() and others to be used before the * dev_name() and others to be used before the
* rest of the driver core is initialized. * rest of the driver core is initialized.
*/ */
if (!match->dev.init_name) { if (!match->dev.init_name && slab_is_available()) {
if (match->id != -1) if (match->id != -1)
match->dev.init_name = match->dev.init_name =
kasprintf(GFP_KERNEL, "%s.%d", kasprintf(GFP_KERNEL, "%s.%d",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment