.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * STMicroelectronics hts221 spi driver |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright 2016 STMicroelectronics Inc. |
---|
5 | 6 | * |
---|
6 | 7 | * Lorenzo Bianconi <lorenzo.bianconi@st.com> |
---|
7 | | - * |
---|
8 | | - * Licensed under the GPL-2. |
---|
9 | 8 | */ |
---|
10 | 9 | |
---|
11 | 10 | #include <linux/kernel.h> |
---|
.. | .. |
---|
32 | 31 | |
---|
33 | 32 | regmap = devm_regmap_init_spi(spi, &hts221_spi_regmap_config); |
---|
34 | 33 | if (IS_ERR(regmap)) { |
---|
35 | | - dev_err(&spi->dev, "Failed to register spi regmap %d\n", |
---|
36 | | - (int)PTR_ERR(regmap)); |
---|
| 34 | + dev_err(&spi->dev, "Failed to register spi regmap %ld\n", |
---|
| 35 | + PTR_ERR(regmap)); |
---|
37 | 36 | return PTR_ERR(regmap); |
---|
38 | 37 | } |
---|
39 | 38 | |
---|
.. | .. |
---|
57 | 56 | .driver = { |
---|
58 | 57 | .name = "hts221_spi", |
---|
59 | 58 | .pm = &hts221_pm_ops, |
---|
60 | | - .of_match_table = of_match_ptr(hts221_spi_of_match), |
---|
| 59 | + .of_match_table = hts221_spi_of_match, |
---|
61 | 60 | }, |
---|
62 | 61 | .probe = hts221_spi_probe, |
---|
63 | 62 | .id_table = hts221_spi_id_table, |
---|