device create: misc: convert device_create_drvdata to device_create
Now that device_create() has been audited, rename things back to the original call to be sane. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
@@ -91,8 +91,8 @@ int power_supply_register(struct device *parent, struct power_supply *psy)
|
||||
{
|
||||
int rc = 0;
|
||||
|
||||
psy->dev = device_create_drvdata(power_supply_class, parent, 0,
|
||||
psy, "%s", psy->name);
|
||||
psy->dev = device_create(power_supply_class, parent, 0, psy,
|
||||
"%s", psy->name);
|
||||
if (IS_ERR(psy->dev)) {
|
||||
rc = PTR_ERR(psy->dev);
|
||||
goto dev_create_failed;
|
||||
|
Reference in New Issue
Block a user