fpga manager: remove label
Remove implementation of 'label' DT binding. Signed-off-by: Alan Tull <atull@opensource.altera.com> Reviewed-by: Moritz Fischer <moritz.fischer@ettus.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
1ec218373b
commit
07687c031d
1 changed files with 3 additions and 6 deletions
|
@ -256,7 +256,6 @@ int fpga_mgr_register(struct device *dev, const char *name,
|
||||||
void *priv)
|
void *priv)
|
||||||
{
|
{
|
||||||
struct fpga_manager *mgr;
|
struct fpga_manager *mgr;
|
||||||
const char *dt_label;
|
|
||||||
int id, ret;
|
int id, ret;
|
||||||
|
|
||||||
if (!mops || !mops->write_init || !mops->write ||
|
if (!mops || !mops->write_init || !mops->write ||
|
||||||
|
@ -300,11 +299,9 @@ int fpga_mgr_register(struct device *dev, const char *name,
|
||||||
mgr->dev.id = id;
|
mgr->dev.id = id;
|
||||||
dev_set_drvdata(dev, mgr);
|
dev_set_drvdata(dev, mgr);
|
||||||
|
|
||||||
dt_label = of_get_property(mgr->dev.of_node, "label", NULL);
|
ret = dev_set_name(&mgr->dev, "fpga%d", id);
|
||||||
if (dt_label)
|
if (ret)
|
||||||
ret = dev_set_name(&mgr->dev, "%s", dt_label);
|
goto error_device;
|
||||||
else
|
|
||||||
ret = dev_set_name(&mgr->dev, "fpga%d", id);
|
|
||||||
|
|
||||||
ret = device_add(&mgr->dev);
|
ret = device_add(&mgr->dev);
|
||||||
if (ret)
|
if (ret)
|
||||||
|
|
Loading…
Add table
Reference in a new issue