@@ -1176,7 +1176,7 @@ static int sc16is7xx_gpio_direction_output(struct gpio_chip *chip,
1176
1176
1177
1177
static int sc16is7xx_probe (struct device * dev ,
1178
1178
const struct sc16is7xx_devtype * devtype ,
1179
- struct regmap * regmap , int irq , unsigned long flags )
1179
+ struct regmap * regmap , int irq )
1180
1180
{
1181
1181
struct sched_param sched_param = { .sched_priority = MAX_RT_PRIO / 2 };
1182
1182
unsigned long freq = 0 , * pfreq = dev_get_platdata (dev );
@@ -1304,7 +1304,7 @@ static int sc16is7xx_probe(struct device *dev,
1304
1304
1305
1305
/* Setup interrupt */
1306
1306
ret = devm_request_irq (dev , irq , sc16is7xx_irq ,
1307
- flags , dev_name (dev ), s );
1307
+ IRQF_TRIGGER_FALLING , dev_name (dev ), s );
1308
1308
if (!ret )
1309
1309
return 0 ;
1310
1310
@@ -1378,7 +1378,6 @@ static struct regmap_config regcfg = {
1378
1378
static int sc16is7xx_spi_probe (struct spi_device * spi )
1379
1379
{
1380
1380
const struct sc16is7xx_devtype * devtype ;
1381
- unsigned long flags = 0 ;
1382
1381
struct regmap * regmap ;
1383
1382
int ret ;
1384
1383
@@ -1399,14 +1398,13 @@ static int sc16is7xx_spi_probe(struct spi_device *spi)
1399
1398
const struct spi_device_id * id_entry = spi_get_device_id (spi );
1400
1399
1401
1400
devtype = (struct sc16is7xx_devtype * )id_entry -> driver_data ;
1402
- flags = IRQF_TRIGGER_FALLING ;
1403
1401
}
1404
1402
1405
1403
regcfg .max_register = (0xf << SC16IS7XX_REG_SHIFT ) |
1406
1404
(devtype -> nr_uart - 1 );
1407
1405
regmap = devm_regmap_init_spi (spi , & regcfg );
1408
1406
1409
- return sc16is7xx_probe (& spi -> dev , devtype , regmap , spi -> irq , flags );
1407
+ return sc16is7xx_probe (& spi -> dev , devtype , regmap , spi -> irq );
1410
1408
}
1411
1409
1412
1410
static int sc16is7xx_spi_remove (struct spi_device * spi )
@@ -1445,7 +1443,6 @@ static int sc16is7xx_i2c_probe(struct i2c_client *i2c,
1445
1443
const struct i2c_device_id * id )
1446
1444
{
1447
1445
const struct sc16is7xx_devtype * devtype ;
1448
- unsigned long flags = 0 ;
1449
1446
struct regmap * regmap ;
1450
1447
1451
1448
if (i2c -> dev .of_node ) {
@@ -1454,14 +1451,13 @@ static int sc16is7xx_i2c_probe(struct i2c_client *i2c,
1454
1451
return - ENODEV ;
1455
1452
} else {
1456
1453
devtype = (struct sc16is7xx_devtype * )id -> driver_data ;
1457
- flags = IRQF_TRIGGER_FALLING ;
1458
1454
}
1459
1455
1460
1456
regcfg .max_register = (0xf << SC16IS7XX_REG_SHIFT ) |
1461
1457
(devtype -> nr_uart - 1 );
1462
1458
regmap = devm_regmap_init_i2c (i2c , & regcfg );
1463
1459
1464
- return sc16is7xx_probe (& i2c -> dev , devtype , regmap , i2c -> irq , flags );
1460
+ return sc16is7xx_probe (& i2c -> dev , devtype , regmap , i2c -> irq );
1465
1461
}
1466
1462
1467
1463
static int sc16is7xx_i2c_remove (struct i2c_client * client )
0 commit comments