RE: [PATCH v10 1/2] thermal: Add thermal driver for Sunplus

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> > +}
> > +
> > +static int sunplus_thermal_remove(struct platform_device *pdev) {
> > +	struct sp_thermal_data *sp_data = platform_get_drvdata(pdev);
> > +
> > +	thermal_zone_of_sensor_unregister(&pdev->dev, sp_data->pcb_tz);
> 
> You used devm to register, so this looks wrong and will lead to double free.
> 
>

You mean the remove function is not needed.  ??







[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux