Commit 4ffda01b authored by Alessandro Rubini's avatar Alessandro Rubini

trivial: fmc-fakedev: use a better device name

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent b4b74824
...@@ -245,7 +245,7 @@ static void ff_dev_release(struct device *dev) ...@@ -245,7 +245,7 @@ static void ff_dev_release(struct device *dev)
static struct fmc_device ff_template_fmc = { static struct fmc_device ff_template_fmc = {
.version = FMC_VERSION, .version = FMC_VERSION,
.owner = THIS_MODULE, .owner = THIS_MODULE,
.carrier_name = "fake", .carrier_name = "fake-fmc-carrier",
.device_id = 0xf001, /* fool */ .device_id = 0xf001, /* fool */
.eeprom_len = sizeof(ff_eeimg[0]), .eeprom_len = sizeof(ff_eeimg[0]),
.memlen = 0x1000, /* 4k, to show something */ .memlen = 0x1000, /* 4k, to show something */
...@@ -262,7 +262,7 @@ static struct ff_dev *ff_dev_create(void) ...@@ -262,7 +262,7 @@ static struct ff_dev *ff_dev_create(void)
ff = kzalloc(sizeof(*ff), GFP_KERNEL); ff = kzalloc(sizeof(*ff), GFP_KERNEL);
if (!ff) if (!ff)
return ERR_PTR(-ENOMEM); return ERR_PTR(-ENOMEM);
dev_set_name(&ff->dev, "fake-fmc"); dev_set_name(&ff->dev, "fake-fmc-carrier");
ff->dev.release = ff_dev_release; ff->dev.release = ff_dev_release;
ret = device_register(&ff->dev); ret = device_register(&ff->dev);
......
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