File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -732,7 +732,7 @@ static int raw3215_pm_stop(struct ccw_device *cdev)
732732 unsigned long flags ;
733733
734734 /* Empty the output buffer, then prevent new I/O. */
735- raw = cdev -> dev . driver_data ;
735+ raw = dev_get_drvdata ( & cdev -> dev ) ;
736736 spin_lock_irqsave (get_ccwdev_lock (raw -> cdev ), flags );
737737 raw3215_make_room (raw , RAW3215_BUFFER_SIZE );
738738 raw -> flags |= RAW3215_FROZEN ;
@@ -746,7 +746,7 @@ static int raw3215_pm_start(struct ccw_device *cdev)
746746 unsigned long flags ;
747747
748748 /* Allow I/O again and flush output buffer. */
749- raw = cdev -> dev . driver_data ;
749+ raw = dev_get_drvdata ( & cdev -> dev ) ;
750750 spin_lock_irqsave (get_ccwdev_lock (raw -> cdev ), flags );
751751 raw -> flags &= ~RAW3215_FROZEN ;
752752 raw -> flags |= RAW3215_FLUSHING ;
Original file line number Diff line number Diff line change @@ -320,7 +320,7 @@ static int mon_open(struct inode *inode, struct file *filp)
320320 goto out_path ;
321321 }
322322 filp -> private_data = monpriv ;
323- monreader_device -> driver_data = monpriv ;
323+ dev_set_drvdata ( & monreader_device , monpriv ) ;
324324 unlock_kernel ();
325325 return nonseekable_open (inode , filp );
326326
@@ -463,7 +463,7 @@ static struct miscdevice mon_dev = {
463463 *****************************************************************************/
464464static int monreader_freeze (struct device * dev )
465465{
466- struct mon_private * monpriv = dev -> driver_data ;
466+ struct mon_private * monpriv = dev_get_drvdata ( & dev ) ;
467467 int rc ;
468468
469469 if (!monpriv )
@@ -487,7 +487,7 @@ static int monreader_freeze(struct device *dev)
487487
488488static int monreader_thaw (struct device * dev )
489489{
490- struct mon_private * monpriv = dev -> driver_data ;
490+ struct mon_private * monpriv = dev_get_drvdata ( dev ) ;
491491 int rc ;
492492
493493 if (!monpriv )
Original file line number Diff line number Diff line change @@ -1322,7 +1322,7 @@ static int raw3270_pm_stop(struct ccw_device *cdev)
13221322 struct raw3270_view * view ;
13231323 unsigned long flags ;
13241324
1325- rp = cdev -> dev . driver_data ;
1325+ rp = dev_get_drvdata ( & cdev -> dev ) ;
13261326 if (!rp )
13271327 return 0 ;
13281328 spin_lock_irqsave (get_ccwdev_lock (rp -> cdev ), flags );
@@ -1348,7 +1348,7 @@ static int raw3270_pm_start(struct ccw_device *cdev)
13481348 struct raw3270 * rp ;
13491349 unsigned long flags ;
13501350
1351- rp = cdev -> dev . driver_data ;
1351+ rp = dev_get_drvdata ( & cdev -> dev ) ;
13521352 if (!rp )
13531353 return 0 ;
13541354 spin_lock_irqsave (get_ccwdev_lock (rp -> cdev ), flags );
Original file line number Diff line number Diff line change @@ -396,7 +396,7 @@ int tape_generic_pm_suspend(struct ccw_device *cdev)
396396{
397397 struct tape_device * device ;
398398
399- device = cdev -> dev . driver_data ;
399+ device = dev_get_drvdata ( & cdev -> dev ) ;
400400 if (!device ) {
401401 return - ENODEV ;
402402 }
Original file line number Diff line number Diff line change @@ -663,7 +663,7 @@ static struct attribute *vmlogrdr_attrs[] = {
663663static int vmlogrdr_pm_prepare (struct device * dev )
664664{
665665 int rc ;
666- struct vmlogrdr_priv_t * priv = dev -> driver_data ;
666+ struct vmlogrdr_priv_t * priv = dev_get_drvdata ( dev ) ;
667667
668668 rc = 0 ;
669669 if (priv ) {
@@ -753,7 +753,7 @@ static int vmlogrdr_register_device(struct vmlogrdr_priv_t *priv)
753753 dev -> bus = & iucv_bus ;
754754 dev -> parent = iucv_root ;
755755 dev -> driver = & vmlogrdr_driver ;
756- dev -> driver_data = priv ;
756+ dev_set_drvdata ( dev , priv ) ;
757757 /*
758758 * The release function could be called after the
759759 * module has been unloaded. It's _only_ task is to
Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ static void urdev_put(struct urdev *urd)
170170 */
171171static int ur_pm_suspend (struct ccw_device * cdev )
172172{
173- struct urdev * urd = cdev -> dev . driver_data ;
173+ struct urdev * urd = dev_get_drvdata ( & cdev -> dev ) ;
174174
175175 TRACE ("ur_pm_suspend: cdev=%p\n" , cdev );
176176 if (urd -> open_flag ) {
Original file line number Diff line number Diff line change @@ -1307,7 +1307,7 @@ static void netiucv_pm_complete(struct device *dev)
13071307 */
13081308static int netiucv_pm_freeze (struct device * dev )
13091309{
1310- struct netiucv_priv * priv = dev -> driver_data ;
1310+ struct netiucv_priv * priv = dev_get_drvdata ( dev ) ;
13111311 struct net_device * ndev = NULL ;
13121312 int rc = 0 ;
13131313
@@ -1331,7 +1331,7 @@ static int netiucv_pm_freeze(struct device *dev)
13311331 */
13321332static int netiucv_pm_restore_thaw (struct device * dev )
13331333{
1334- struct netiucv_priv * priv = dev -> driver_data ;
1334+ struct netiucv_priv * priv = dev_get_drvdata ( dev ) ;
13351335 struct net_device * ndev = NULL ;
13361336 int rc = 0 ;
13371337
You can’t perform that action at this time.
0 commit comments