mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 14:04:27 -04:00
Merge tag 'spi-fix-v7.3-merge-window' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi
Pull spi fixes from Mark Brown: "A couple of fixes that came in during the merge window: Geert fixed an uninitialised data bug in the amlogic-spisg driver which could crash and in the Loongson driver Li Jun hooked up the existing suspend operations more fully to fix hibernation" * tag 'spi-fix-v7.3-merge-window' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi: spi: loongson: pm: add .freeze .poweroff .thaw .restore spi: amlogic-spisg: Make sure clk_init_data is fully initialized
This commit is contained in:
@@ -636,7 +636,7 @@ static int aml_spisg_target_abort(struct spi_controller *ctlr)
|
||||
static int aml_spisg_clk_init(struct spisg_device *spisg, void __iomem *base)
|
||||
{
|
||||
struct device *dev = &spisg->pdev->dev;
|
||||
struct clk_init_data init;
|
||||
struct clk_init_data init = {};
|
||||
struct clk_divider *div;
|
||||
struct clk_div_table *tbl;
|
||||
char name[32];
|
||||
|
||||
@@ -269,10 +269,8 @@ static int loongson_spi_resume(struct device *dev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
const struct dev_pm_ops loongson_spi_dev_pm_ops = {
|
||||
.suspend = loongson_spi_suspend,
|
||||
.resume = loongson_spi_resume,
|
||||
};
|
||||
DEFINE_SIMPLE_DEV_PM_OPS(loongson_spi_dev_pm_ops, loongson_spi_suspend, loongson_spi_resume);
|
||||
|
||||
EXPORT_SYMBOL_NS_GPL(loongson_spi_dev_pm_ops, "SPI_LOONGSON_CORE");
|
||||
|
||||
MODULE_DESCRIPTION("Loongson SPI core driver");
|
||||
|
||||
Reference in New Issue
Block a user