aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/spi/spi-sc18is602.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/spi/spi-sc18is602.c b/drivers/spi/spi-sc18is602.c
index 9eda21d739c6..c1a01d1ac315 100644
--- a/drivers/spi/spi-sc18is602.c
+++ b/drivers/spi/spi-sc18is602.c
@@ -319,7 +319,7 @@ static int sc18is602_probe(struct i2c_client *client,
319 master->transfer_one_message = sc18is602_transfer_one; 319 master->transfer_one_message = sc18is602_transfer_one;
320 master->dev.of_node = np; 320 master->dev.of_node = np;
321 321
322 error = spi_register_master(master); 322 error = devm_spi_register_master(dev, master);
323 if (error) 323 if (error)
324 goto error_reg; 324 goto error_reg;
325 325
@@ -330,16 +330,6 @@ error_reg:
330 return error; 330 return error;
331} 331}
332 332
333static int sc18is602_remove(struct i2c_client *client)
334{
335 struct sc18is602 *hw = i2c_get_clientdata(client);
336 struct spi_master *master = hw->master;
337
338 spi_unregister_master(master);
339
340 return 0;
341}
342
343static const struct i2c_device_id sc18is602_id[] = { 333static const struct i2c_device_id sc18is602_id[] = {
344 { "sc18is602", sc18is602 }, 334 { "sc18is602", sc18is602 },
345 { "sc18is602b", sc18is602b }, 335 { "sc18is602b", sc18is602b },
@@ -353,7 +343,6 @@ static struct i2c_driver sc18is602_driver = {
353 .name = "sc18is602", 343 .name = "sc18is602",
354 }, 344 },
355 .probe = sc18is602_probe, 345 .probe = sc18is602_probe,
356 .remove = sc18is602_remove,
357 .id_table = sc18is602_id, 346 .id_table = sc18is602_id,
358}; 347};
359 348