|
@@ -929,7 +929,7 @@ static int m25p_probe(struct spi_device *spi)
|
|
* a chip ID, try the JEDEC id commands; they'll work for most
|
|
* a chip ID, try the JEDEC id commands; they'll work for most
|
|
* newer chips, even if we don't recognize the particular chip.
|
|
* newer chips, even if we don't recognize the particular chip.
|
|
*/
|
|
*/
|
|
- data = spi->dev.platform_data;
|
|
|
|
|
|
+ data = dev_get_platdata(&spi->dev);
|
|
if (data && data->type) {
|
|
if (data && data->type) {
|
|
const struct spi_device_id *plat_id;
|
|
const struct spi_device_id *plat_id;
|
|
|
|
|