[PATCH v2 6/6] spi: microchip-core: Remove unneeded PM related macro

Andy Shevchenko posted 6 patches 5 days, 15 hours ago
There is a newer version of this series
[PATCH v2 6/6] spi: microchip-core: Remove unneeded PM related macro
Posted by Andy Shevchenko 5 days, 15 hours ago
Static declaration by default are 0 or NULL, no need to initialise
them explicitly. Remove unneeded PM related macro.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/spi/spi-microchip-core-spi.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/spi/spi-microchip-core-spi.c b/drivers/spi/spi-microchip-core-spi.c
index 941b7e23eac3..1e62af20d6f2 100644
--- a/drivers/spi/spi-microchip-core-spi.c
+++ b/drivers/spi/spi-microchip-core-spi.c
@@ -398,8 +398,6 @@ static void mchp_corespi_remove(struct platform_device *pdev)
 	mchp_corespi_disable(spi);
 }
 
-#define MICROCHIP_SPI_PM_OPS (NULL)
-
 /*
  * Platform driver data structure
  */
@@ -416,7 +414,6 @@ static struct platform_driver mchp_corespi_driver = {
 	.probe = mchp_corespi_probe,
 	.driver = {
 		.name = "microchip-corespi",
-		.pm = MICROCHIP_SPI_PM_OPS,
 		.of_match_table = of_match_ptr(mchp_corespi_dt_ids),
 	},
 	.remove = mchp_corespi_remove,
-- 
2.50.1
Re: [PATCH v2 6/6] spi: microchip-core: Remove unneeded PM related macro
Posted by Prajna Rajendra Kumar 4 days, 7 hours ago
On 26/11/2025 07:54, Andy Shevchenko wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
>
> Static declaration by default are 0 or NULL, no need to initialise
> them explicitly. Remove unneeded PM related macro.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Prajna Rajendra Kumar <prajna.rajendrakumar@microchip.com>
> ---
>   drivers/spi/spi-microchip-core-spi.c | 3 ---
>   1 file changed, 3 deletions(-)
>
> diff --git a/drivers/spi/spi-microchip-core-spi.c b/drivers/spi/spi-microchip-core-spi.c
> index 941b7e23eac3..1e62af20d6f2 100644
> --- a/drivers/spi/spi-microchip-core-spi.c
> +++ b/drivers/spi/spi-microchip-core-spi.c
> @@ -398,8 +398,6 @@ static void mchp_corespi_remove(struct platform_device *pdev)
>          mchp_corespi_disable(spi);
>   }
>
> -#define MICROCHIP_SPI_PM_OPS (NULL)
> -
>   /*
>    * Platform driver data structure
>    */
> @@ -416,7 +414,6 @@ static struct platform_driver mchp_corespi_driver = {
>          .probe = mchp_corespi_probe,
>          .driver = {
>                  .name = "microchip-corespi",
> -               .pm = MICROCHIP_SPI_PM_OPS,
>                  .of_match_table = of_match_ptr(mchp_corespi_dt_ids),
>          },
>          .remove = mchp_corespi_remove,
> --
> 2.50.1
>