mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
thunderbolt: Stop passing matched device ID to .probe()
No driver makes use of that parameter, so drop it and don't spend the effort to determine the matching entry. Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com> Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
This commit is contained in:
committed by
Mika Westerberg
parent
5f40cba7d4
commit
45f104755a
@@ -1339,7 +1339,7 @@ static void tbnet_generate_mac(struct net_device *dev)
|
||||
dev->priv_flags |= IFF_LIVE_ADDR_CHANGE;
|
||||
}
|
||||
|
||||
static int tbnet_probe(struct tb_service *svc, const struct tb_service_id *id)
|
||||
static int tbnet_probe(struct tb_service *svc)
|
||||
{
|
||||
struct tb_xdomain *xd = tb_service_parent(svc);
|
||||
struct net_device *dev;
|
||||
|
||||
@@ -636,7 +636,7 @@ static void dma_test_debugfs_init(struct tb_service *svc)
|
||||
debugfs_create_file("test", 0200, debugfs_dir, svc, &test_fops);
|
||||
}
|
||||
|
||||
static int dma_test_probe(struct tb_service *svc, const struct tb_service_id *id)
|
||||
static int dma_test_probe(struct tb_service *svc)
|
||||
{
|
||||
struct tb_xdomain *xd = tb_service_parent(svc);
|
||||
struct dma_test *dt;
|
||||
|
||||
@@ -77,12 +77,10 @@ static int tb_service_probe(struct device *dev)
|
||||
{
|
||||
struct tb_service *svc = tb_to_service(dev);
|
||||
struct tb_service_driver *driver;
|
||||
const struct tb_service_id *id;
|
||||
|
||||
driver = container_of(dev->driver, struct tb_service_driver, driver);
|
||||
id = __tb_service_match(dev, &driver->driver);
|
||||
|
||||
return driver->probe(svc, id);
|
||||
return driver->probe(svc);
|
||||
}
|
||||
|
||||
static void tb_service_remove(struct device *dev)
|
||||
|
||||
@@ -1540,7 +1540,7 @@ static void tbstream_group_detach_stream(struct tbstream *stream)
|
||||
config_group_put(&sg->group);
|
||||
}
|
||||
|
||||
static int tbstream_probe(struct tb_service *svc, const struct tb_service_id *id)
|
||||
static int tbstream_probe(struct tb_service *svc)
|
||||
{
|
||||
struct tbstream *stream;
|
||||
|
||||
|
||||
@@ -465,7 +465,7 @@ static inline struct tb_service *tb_to_service(struct device *dev)
|
||||
*/
|
||||
struct tb_service_driver {
|
||||
struct device_driver driver;
|
||||
int (*probe)(struct tb_service *svc, const struct tb_service_id *id);
|
||||
int (*probe)(struct tb_service *svc);
|
||||
void (*remove)(struct tb_service *svc);
|
||||
void (*shutdown)(struct tb_service *svc);
|
||||
const struct tb_service_id *id_table;
|
||||
|
||||
Reference in New Issue
Block a user