diff options
Diffstat (limited to 'arch/powerpc/sysdev/fsl_soc.c')
-rw-r--r-- | arch/powerpc/sysdev/fsl_soc.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/arch/powerpc/sysdev/fsl_soc.c b/arch/powerpc/sysdev/fsl_soc.c index a01c89d3f9bd..a46c1c867930 100644 --- a/arch/powerpc/sysdev/fsl_soc.c +++ b/arch/powerpc/sysdev/fsl_soc.c | |||
@@ -420,8 +420,8 @@ arch_initcall(fsl_usb_of_init); | |||
420 | static int __init of_fsl_spi_probe(char *type, char *compatible, u32 sysclk, | 420 | static int __init of_fsl_spi_probe(char *type, char *compatible, u32 sysclk, |
421 | struct spi_board_info *board_infos, | 421 | struct spi_board_info *board_infos, |
422 | unsigned int num_board_infos, | 422 | unsigned int num_board_infos, |
423 | void (*activate_cs)(u8 cs, u8 polarity), | 423 | void (*cs_control)(struct spi_device *dev, |
424 | void (*deactivate_cs)(u8 cs, u8 polarity)) | 424 | bool on)) |
425 | { | 425 | { |
426 | struct device_node *np; | 426 | struct device_node *np; |
427 | unsigned int i = 0; | 427 | unsigned int i = 0; |
@@ -433,8 +433,7 @@ static int __init of_fsl_spi_probe(char *type, char *compatible, u32 sysclk, | |||
433 | struct resource res[2]; | 433 | struct resource res[2]; |
434 | struct platform_device *pdev; | 434 | struct platform_device *pdev; |
435 | struct fsl_spi_platform_data pdata = { | 435 | struct fsl_spi_platform_data pdata = { |
436 | .activate_cs = activate_cs, | 436 | .cs_control = cs_control, |
437 | .deactivate_cs = deactivate_cs, | ||
438 | }; | 437 | }; |
439 | 438 | ||
440 | memset(res, 0, sizeof(res)); | 439 | memset(res, 0, sizeof(res)); |
@@ -501,8 +500,7 @@ next: | |||
501 | 500 | ||
502 | int __init fsl_spi_init(struct spi_board_info *board_infos, | 501 | int __init fsl_spi_init(struct spi_board_info *board_infos, |
503 | unsigned int num_board_infos, | 502 | unsigned int num_board_infos, |
504 | void (*activate_cs)(u8 cs, u8 polarity), | 503 | void (*cs_control)(struct spi_device *spi, bool on)) |
505 | void (*deactivate_cs)(u8 cs, u8 polarity)) | ||
506 | { | 504 | { |
507 | u32 sysclk = -1; | 505 | u32 sysclk = -1; |
508 | int ret; | 506 | int ret; |
@@ -518,10 +516,10 @@ int __init fsl_spi_init(struct spi_board_info *board_infos, | |||
518 | } | 516 | } |
519 | 517 | ||
520 | ret = of_fsl_spi_probe(NULL, "fsl,spi", sysclk, board_infos, | 518 | ret = of_fsl_spi_probe(NULL, "fsl,spi", sysclk, board_infos, |
521 | num_board_infos, activate_cs, deactivate_cs); | 519 | num_board_infos, cs_control); |
522 | if (!ret) | 520 | if (!ret) |
523 | of_fsl_spi_probe("spi", "fsl_spi", sysclk, board_infos, | 521 | of_fsl_spi_probe("spi", "fsl_spi", sysclk, board_infos, |
524 | num_board_infos, activate_cs, deactivate_cs); | 522 | num_board_infos, cs_control); |
525 | 523 | ||
526 | return spi_register_board_info(board_infos, num_board_infos); | 524 | return spi_register_board_info(board_infos, num_board_infos); |
527 | } | 525 | } |