if (len != -ENODEV)
return len;
- len = snprintf(buf, PAGE_SIZE, "platform:%s\n", dev_name(&pdev->dev));
+ len = snprintf(buf, PAGE_SIZE, "platform:%s\n", pdev->name);
return (len >= PAGE_SIZE) ? (PAGE_SIZE - 1) : len;
}
return rc;
add_uevent_var(env, "MODALIAS=%s%s", PLATFORM_MODULE_PREFIX,
- dev_name(&pdev->dev));
+ pdev->name);
return 0;
}
struct platform_device *pdev)
{
while (id->name[0]) {
- if (strcmp(dev_name(&pdev->dev), id->name) == 0) {
+ if (strcmp(pdev->name, id->name) == 0) {
pdev->id_entry = id;
return id;
}
return platform_match_id(pdrv->id_table, pdev) != NULL;
/* fall-back to driver name match */
- return (strcmp(dev_name(&pdev->dev), drv->name) == 0);
+ return (strcmp(pdev->name, drv->name) == 0);
}
#ifdef CONFIG_PM_SLEEP