mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 06:04:44 +01:00
fsi: master: Convert to fsi bus probe mechanism
The fsi bus got a dedicated probe function. Make use of that. This fixes a runtime warning about the driver needing to be converted to the bus probe method. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com> Acked-by: Eddie James <eajames@linux.ibm.com> Link: https://patch.msgid.link/17686d71b4ad3f7ebb63e92453273095a5dd09ea.1765279318.git.u.kleine-koenig@baylibre.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
ec93d2ea3d
commit
573e29c501
1 changed files with 7 additions and 9 deletions
|
|
@ -192,9 +192,9 @@ static int hub_master_init(struct fsi_master_hub *hub)
|
|||
return fsi_device_write(dev, FSI_MRESB0, ®, sizeof(reg));
|
||||
}
|
||||
|
||||
static int hub_master_probe(struct device *dev)
|
||||
static int hub_master_probe(struct fsi_device *fsi_dev)
|
||||
{
|
||||
struct fsi_device *fsi_dev = to_fsi_dev(dev);
|
||||
struct device *dev = &fsi_dev->dev;
|
||||
struct fsi_master_hub *hub;
|
||||
uint32_t reg, links;
|
||||
__be32 __reg;
|
||||
|
|
@ -235,7 +235,7 @@ static int hub_master_probe(struct device *dev)
|
|||
hub->master.send_break = hub_master_break;
|
||||
hub->master.link_enable = hub_master_link_enable;
|
||||
|
||||
dev_set_drvdata(dev, hub);
|
||||
fsi_set_drvdata(fsi_dev, hub);
|
||||
|
||||
hub_master_init(hub);
|
||||
|
||||
|
|
@ -259,9 +259,9 @@ err_release:
|
|||
return rc;
|
||||
}
|
||||
|
||||
static int hub_master_remove(struct device *dev)
|
||||
static void hub_master_remove(struct fsi_device *fsi_dev)
|
||||
{
|
||||
struct fsi_master_hub *hub = dev_get_drvdata(dev);
|
||||
struct fsi_master_hub *hub = fsi_get_drvdata(fsi_dev);
|
||||
|
||||
fsi_master_unregister(&hub->master);
|
||||
fsi_slave_release_range(hub->upstream->slave, hub->addr, hub->size);
|
||||
|
|
@ -272,8 +272,6 @@ static int hub_master_remove(struct device *dev)
|
|||
* the hub
|
||||
*/
|
||||
put_device(&hub->master.dev);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct fsi_device_id hub_master_ids[] = {
|
||||
|
|
@ -286,10 +284,10 @@ static const struct fsi_device_id hub_master_ids[] = {
|
|||
|
||||
static struct fsi_driver hub_master_driver = {
|
||||
.id_table = hub_master_ids,
|
||||
.probe = hub_master_probe,
|
||||
.remove = hub_master_remove,
|
||||
.drv = {
|
||||
.name = "fsi-master-hub",
|
||||
.probe = hub_master_probe,
|
||||
.remove = hub_master_remove,
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue