Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 83dfb8b6 authored by Russell King's avatar Russell King Committed by Greg Kroah-Hartman
Browse files

[PATCH] Add tiocx bus_type probe/remove methods

parent 5c0784c3
Loading
Loading
Loading
Loading
+8 −8
Original line number Original line Diff line number Diff line
@@ -77,12 +77,6 @@ static void tiocx_bus_release(struct device *dev)
	kfree(to_cx_dev(dev));
	kfree(to_cx_dev(dev));
}
}


struct bus_type tiocx_bus_type = {
	.name = "tiocx",
	.match = tiocx_match,
	.uevent = tiocx_uevent,
};

/**
/**
 * cx_device_match - Find cx_device in the id table.
 * cx_device_match - Find cx_device in the id table.
 * @ids: id table from driver
 * @ids: id table from driver
@@ -149,6 +143,14 @@ static int cx_driver_remove(struct device *dev)
	return 0;
	return 0;
}
}


struct bus_type tiocx_bus_type = {
	.name = "tiocx",
	.match = tiocx_match,
	.uevent = tiocx_uevent,
	.probe = cx_device_probe,
	.remove = cx_driver_remove,
};

/**
/**
 * cx_driver_register - Register the driver.
 * cx_driver_register - Register the driver.
 * @cx_driver: driver table (cx_drv struct) from driver
 * @cx_driver: driver table (cx_drv struct) from driver
@@ -162,8 +164,6 @@ int cx_driver_register(struct cx_drv *cx_driver)
{
{
	cx_driver->driver.name = cx_driver->name;
	cx_driver->driver.name = cx_driver->name;
	cx_driver->driver.bus = &tiocx_bus_type;
	cx_driver->driver.bus = &tiocx_bus_type;
	cx_driver->driver.probe = cx_device_probe;
	cx_driver->driver.remove = cx_driver_remove;


	return driver_register(&cx_driver->driver);
	return driver_register(&cx_driver->driver);
}
}